1. 07 6月, 2014 2 次提交
  2. 31 5月, 2014 4 次提交
  3. 28 5月, 2014 1 次提交
  4. 27 5月, 2014 4 次提交
  5. 26 5月, 2014 1 次提交
  6. 25 5月, 2014 2 次提交
  7. 23 5月, 2014 1 次提交
  8. 20 5月, 2014 10 次提交
  9. 19 5月, 2014 1 次提交
  10. 17 5月, 2014 14 次提交
    • A
      beego: fix #478 · b45f0b9b
      astaxie 提交于
      b45f0b9b
    • A
      merger master · cf04ade6
      astaxie 提交于
      cf04ade6
    • A
      beego: change the version to 1.2.0 · 92f61816
      astaxie 提交于
      92f61816
    • A
      beego: admin support link · 9270a050
      astaxie 提交于
      9270a050
    • A
      beego: controller add ServeFormatted · 1da37f6c
      astaxie 提交于
      ServeFormatted serve Xml OR Json, depending on the value of the Accept
      header
      1da37f6c
    • A
      session: support memcache interface · ef6d9b9a
      astaxie 提交于
      ef6d9b9a
    • A
      session:support struct. · c2657862
      astaxie 提交于
      gob.Register(v)
      c2657862
    • A
      beego: XSRF support Controller level fix #610 · c5c806b5
      astaxie 提交于
      default value is true when you Enable Global XSRF, also can control in
      the prepare function to change the value.
      c5c806b5
    • A
      beego: support namespace · e657dcfd
      astaxie 提交于
      ns := beego.NewNamespace("/v1/api/")
      ns.Cond(func(ctx *context.Context)bool{
      	    if ctx.Input.Domain() == "www.beego.me" {
      	    	return true
      	    }
      	    return false
      	})
      .Filter("before", Authenticate)
      .Router("/order",	&admin.OrderController{})
      .Get("/version",func (ctx *context.Context) {
      	ctx.Output.Body([]byte("1.0.0"))
      })
      .Post("/login",func (ctx *context.Context) {
      	if ctx.Query("username") == "admin" && ctx.Query("username") ==
      "password" {
      
      	}
      })
      .Namespace(
      	NewNamespace("/shop").
      		Get("/order/:id", func(ctx *context.Context) {
      		ctx.Output.Body([]byte(ctx.Input.Param(":id")))
      	}),
      )
      e657dcfd
    • S
      orm: add test for unexported struct field · 2ed9b2bf
      slene 提交于
      2ed9b2bf
    • A
      beego: support more router · 55ad951b
      astaxie 提交于
      //design model
      	beego.Get(router, beego.FilterFunc)
      	beego.Post(router, beego.FilterFunc)
      	beego.Put(router, beego.FilterFunc)
      	beego.Head(router, beego.FilterFunc)
      	beego.Options(router, beego.FilterFunc)
      	beego.Delete(router, beego.FilterFunc)
      	beego.Handler(router, http.Handler)
      
      //example
      
      beego.Get("/user", func(ctx *context.Context) {
      	ctx.Output.Body([]byte("Get userlist"))
      })
      
      beego.Post("/user", func(ctx *context.Context) {
      	ctx.Output.Body([]byte("add userlist"))
      })
      
      beego.Delete("/user/:id", func(ctx *context.Context) {
      	ctx.Output.Body([]byte([]byte(ctx.Input.Param(":id")))
      })
      
      import (
          "http"
          "github.com/gorilla/rpc"
          "github.com/gorilla/rpc/json"
      )
      
      func init() {
          s := rpc.NewServer()
          s.RegisterCodec(json.NewCodec(), "application/json")
          s.RegisterService(new(HelloService), "")
          beego.Handler("/rpc", s)
      }
      55ad951b
    • A
      config: fix the import issue · ef815bf5
      astaxie 提交于
      ef815bf5
    • J
      bug fixed · 6082a0af
      jessonchan 提交于
      6082a0af
    • J
      refator func · be30fb79
      jessonchan 提交于
      be30fb79