Finish half translation work.
This commit is contained in:
@ -4,8 +4,8 @@ import "net/http"
|
||||
|
||||
type Controller interface {
|
||||
Bean
|
||||
//注册自己固定的路由。
|
||||
//register self's fixed routes
|
||||
RegisterRoutes() map[string]func(writer http.ResponseWriter, request *http.Request)
|
||||
//处理一些特殊的路由。
|
||||
//handle some special routes, eg. params in the url.
|
||||
HandleRoutes(writer http.ResponseWriter, request *http.Request) (func(writer http.ResponseWriter, request *http.Request), bool)
|
||||
}
|
||||
|
Reference in New Issue
Block a user