mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 17:00:55 +00:00
commit
2117aecf65
25
router.go
25
router.go
@ -51,15 +51,22 @@ const (
|
|||||||
var (
|
var (
|
||||||
// HTTPMETHOD list the supported http methods.
|
// HTTPMETHOD list the supported http methods.
|
||||||
HTTPMETHOD = map[string]string{
|
HTTPMETHOD = map[string]string{
|
||||||
"GET": "GET",
|
"GET": "GET",
|
||||||
"POST": "POST",
|
"POST": "POST",
|
||||||
"PUT": "PUT",
|
"PUT": "PUT",
|
||||||
"DELETE": "DELETE",
|
"DELETE": "DELETE",
|
||||||
"PATCH": "PATCH",
|
"PATCH": "PATCH",
|
||||||
"OPTIONS": "OPTIONS",
|
"OPTIONS": "OPTIONS",
|
||||||
"HEAD": "HEAD",
|
"HEAD": "HEAD",
|
||||||
"TRACE": "TRACE",
|
"TRACE": "TRACE",
|
||||||
"CONNECT": "CONNECT",
|
"CONNECT": "CONNECT",
|
||||||
|
"MKCOL": "MKCOL",
|
||||||
|
"COPY": "COPY",
|
||||||
|
"MOVE": "MOVE",
|
||||||
|
"PROPFIND": "PROPFIND",
|
||||||
|
"PROPPATCH": "PROPPATCH",
|
||||||
|
"LOCK": "LOCK",
|
||||||
|
"UNLOCK": "UNLOCK",
|
||||||
}
|
}
|
||||||
// these beego.Controller's methods shouldn't reflect to AutoRouter
|
// these beego.Controller's methods shouldn't reflect to AutoRouter
|
||||||
exceptMethod = []string{"Init", "Prepare", "Finish", "Render", "RenderString",
|
exceptMethod = []string{"Init", "Prepare", "Finish", "Render", "RenderString",
|
||||||
|
Loading…
Reference in New Issue
Block a user