1. 06 Jun, 2014 2 commits
  2. 31 May, 2014 3 commits
  3. 30 May, 2014 1 commit
  4. 28 May, 2014 1 commit
  5. 27 May, 2014 4 commits
  6. 26 May, 2014 1 commit
  7. 25 May, 2014 2 commits
  8. 23 May, 2014 1 commit
  9. 20 May, 2014 10 commits
  10. 19 May, 2014 1 commit
  11. 16 May, 2014 14 commits
    • astaxie's avatar
      beego: fix #478 · b45f0b9b
      astaxie authored
      b45f0b9b
    • astaxie's avatar
      merger master · cf04ade6
      astaxie authored
      cf04ade6
    • astaxie's avatar
      beego: change the version to 1.2.0 · 92f61816
      astaxie authored
      92f61816
    • astaxie's avatar
      beego: admin support link · 9270a050
      astaxie authored
      9270a050
    • astaxie's avatar
      beego: controller add ServeFormatted · 1da37f6c
      astaxie authored
      ServeFormatted serve Xml OR Json, depending on the value of the Accept
      header
      1da37f6c
    • astaxie's avatar
      session: support memcache interface · ef6d9b9a
      astaxie authored
      ef6d9b9a
    • astaxie's avatar
      session:support struct. · c2657862
      astaxie authored
      gob.Register(v)
      c2657862
    • astaxie's avatar
      beego: XSRF support Controller level fix #610 · c5c806b5
      astaxie authored
      default value is true when you Enable Global XSRF, also can control in
      the prepare function to change the value.
      c5c806b5
    • astaxie's avatar
      beego: support namespace · e657dcfd
      astaxie authored
      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
    • slene's avatar
      orm: add test for unexported struct field · 2ed9b2bf
      slene authored
      2ed9b2bf
    • astaxie's avatar
      beego: support more router · 55ad951b
      astaxie authored
      //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
    • astaxie's avatar
      config: fix the import issue · ef815bf5
      astaxie authored
      ef815bf5
    • jessonchan's avatar
      bug fixed · 6082a0af
      jessonchan authored
      6082a0af
    • jessonchan's avatar
      refator func · be30fb79
      jessonchan authored
      be30fb79