1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-15 05:01:01 +00:00

support websocket #20

add example chat
This commit is contained in:
astaxie
2013-04-08 00:28:32 +08:00
parent 2573696860
commit 3ad639e739
4 changed files with 223 additions and 4 deletions

View File

@ -207,6 +207,11 @@ func Router(path string, c ControllerInterface) *App {
return BeeApp
}
func RouterHandler(path string, c http.Handler) *App {
BeeApp.Handlers.AddHandler(path, c)
return BeeApp
}
func Filter(filter http.HandlerFunc) *App {
BeeApp.Filter(filter)
return BeeApp