MCPcopy Create free account
hub / github.com/devfeel/dotweb / InitRoute

Function InitRoute

example/router/main.go:53–63  ·  view source on GitHub ↗
(server *dotweb.HttpServer)

Source from the content-addressed store, hash-verified

51}
52
53func InitRoute(server *dotweb.HttpServer) {
54 server.GET("/", Index)
55 server.GET("/d/:x/y", Index)
56 server.GET("/x/:y", Index)
57 server.GET("/x/", Index)
58
59 server.POST("/post", Index)
60
61 server.Any("/any", Any)
62 server.RegisterHandlerFunc("GET", "/h/func", HandlerFunc)
63}

Callers 1

mainFunction · 0.70

Calls 4

GETMethod · 0.65
POSTMethod · 0.65
AnyMethod · 0.65
RegisterHandlerFuncMethod · 0.65

Tested by

no test coverage detected