SnailKnows
|
67c0c232a1
|
Update beego.go
|
2014-09-20 18:56:46 +08:00 |
|
astaxie
|
41adcf9966
|
change the version 1.4.0 to 1.4.1
|
2014-09-02 14:41:14 +08:00 |
|
smallfish
|
f85ac088c3
|
format comments
|
2014-08-19 16:48:30 +08:00 |
|
astaxie
|
c4fa17921e
|
comments for godocs
|
2014-08-18 16:44:40 +08:00 |
|
astaxie
|
a144769515
|
update the documents & comments
|
2014-08-18 16:41:43 +08:00 |
|
astaxie
|
e566322643
|
beego: change the version from 1.4.0 to 1.3.2
|
2014-08-18 14:46:43 +08:00 |
|
astaxie
|
5ecfe0c335
|
beego hook change the path & fix the migration bug
|
2014-08-13 10:43:05 +08:00 |
|
astaxie
|
c0d3cc6fc5
|
beego: fix the domain string
|
2014-08-05 08:55:46 +08:00 |
|
astaxie
|
d7a5281bda
|
session: support cookie domain
|
2014-08-04 16:21:06 +08:00 |
|
astaxie
|
474a16a7a0
|
beego: improve the static file server
|
2014-08-04 15:31:27 +08:00 |
|
astaxie
|
fefd8ddb5b
|
beego: update licence& fix #669
|
2014-07-03 23:40:21 +08:00 |
|
astaxie
|
36ba1e49b1
|
beego:change to 1.3.2
|
2014-07-01 00:06:35 +08:00 |
|
astaxie
|
0f170a80da
|
update the comments fix #658
|
2014-06-25 10:39:37 +08:00 |
|
astaxie
|
90f91b10c5
|
beego: change to beego 1.3.1
|
2014-06-23 15:31:51 +08:00 |
|
astaxie
|
af4f153830
|
beego: update the router rule for *
* not match the empty route
|
2014-06-21 11:44:24 +08:00 |
|
astaxie
|
c3a07555c4
|
beego:change version to 1.3.0
|
2014-06-18 15:15:45 +08:00 |
|
astaxie
|
720a77c1f9
|
beego:rever docs
|
2014-06-18 11:15:43 +08:00 |
|
astaxie
|
b943b74fc5
|
beego:init GlobalDocApi
|
2014-06-18 11:09:47 +08:00 |
|
astaxie
|
cff632f553
|
beego: swagger EnableDocs
|
2014-06-16 16:05:19 +08:00 |
|
astaxie
|
7c0d0900ac
|
beego:fix static file router
|
2014-06-11 01:19:39 +08:00 |
|
astaxie
|
6809c97611
|
beego: improve performance
|
2014-06-11 01:11:32 +08:00 |
|
astaxie
|
675643c68d
|
beego: run mode support test
|
2014-06-10 22:47:48 +08:00 |
|
astaxie
|
e00eab7f49
|
beego: change to tree
|
2014-06-08 20:24:07 +08:00 |
|
astaxie
|
23229ef9ef
|
beego: BeegoServerName & beego.Run
BeegoServerName change to beegoServer+Version
beego.Run(“:8089”)
|
2014-05-25 22:35:20 +08:00 |
|
astaxie
|
17104c25a2
|
beego: Refactoring Filter & add comments
|
2014-05-20 18:47:41 +08:00 |
|
astaxie
|
33ad6c1370
|
beego: remove app funciont & fix #590
config := tls.Config{
ClientAuth: tls.RequireAndVerifyClientCert,
Certificates: []tls.Certificate{cert},
ClientCAs: pool,
}
config.Rand = rand.Reader
beego.BeeApp.Server. TLSConfig = &config
|
2014-05-20 17:28:06 +08:00 |
|
astaxie
|
18a02d7d60
|
beego:support https & http listen
|
2014-05-20 15:30:17 +08:00 |
|
astaxie
|
92f6181616
|
beego: change the version to 1.2.0
|
2014-05-17 02:26:52 +08:00 |
|
astaxie
|
e657dcfd5f
|
beego: support namespace
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")))
}),
)
|
2014-05-17 02:26:51 +08:00 |
|
astaxie
|
55ad951bce
|
beego: support more router
//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)
}
|
2014-05-17 02:26:51 +08:00 |
|
astaxie
|
c188cbbcb4
|
update all files License
|
2014-05-17 02:26:50 +08:00 |
|
astaxie
|
f9cc9e9eb3
|
beego: release new version 1.1.4
|
2014-04-08 17:45:57 +08:00 |
|
astaxie
|
4124760706
|
beego: filter the static file's url
|
2014-04-07 14:20:30 +08:00 |
|
astaxie
|
5a863b45f4
|
beego: BeeAdminApp private
|
2014-04-06 01:02:10 +08:00 |
|
astaxie
|
3ad30d48b5
|
beego: fix the godoc
|
2014-04-06 00:53:18 +08:00 |
|
astaxie
|
7f394feab5
|
beego: hot fix for TestBeegoInit can't parsefile
|
2014-04-04 10:04:36 +08:00 |
|
astaxie
|
5c06cd090c
|
beego: hot fix for console logs & go run can't find file.
|
2014-04-04 09:56:25 +08:00 |
|
astaxie
|
fc982feeb9
|
fix go run hello.go & console log
|
2014-04-04 09:49:57 +08:00 |
|
astaxie
|
1705b42546
|
beego: change version from 1.1.1 to 1.1.2
|
2014-04-03 15:54:37 +08:00 |
|
asta.xie
|
5505cc09ed
|
beego: move init to a fund & add a new fund TestBeegoInit
support Test with everything init
|
2014-04-03 15:07:20 +08:00 |
|
asta.xie
|
745e9fb0fb
|
change version to 1.1.1
|
2014-03-12 21:24:23 +08:00 |
|
cnphpbb
|
0f015d75d2
|
Update beego.go - Modify GroupRouters all function
Modify the file beego.go.
Type GroupRouters all function
Slice types exist trap bug.
|
2014-03-12 16:50:13 +08:00 |
|
asta.xie
|
76222ac8d0
|
change 1.0.1 to 1.1.0
|
2014-02-10 11:33:53 +08:00 |
|
傅小黑
|
32799bc259
|
add comments for middleware packages, fix typo error
|
2014-01-17 16:03:01 +08:00 |
|
slene
|
3b99f37aa1
|
add a empty fake config Initialize AppConfig to avoid nil pointer runtime error.
|
2014-01-11 14:28:11 +08:00 |
|
sol lu
|
afadb3f6df
|
Update beego.go
|
2014-01-10 13:31:08 +08:00 |
|
astaxie
|
844412c302
|
fix #453
|
2014-01-09 21:37:50 +08:00 |
|
astaxie
|
31bdb793cf
|
make fix
|
2014-01-05 15:21:50 +08:00 |
|
astaxie
|
9cbd475701
|
beego support new version session
|
2014-01-05 14:59:39 +08:00 |
|
astaxie
|
d57557dc55
|
add AutoRouterWithPrefix
|
2014-01-01 17:57:57 +08:00 |
|