wings/api/routes.go
Jakob Schrettenbrunner 7b9c67d508 api: improve routes
2017-08-31 23:57:33 +02:00

10 lines
238 B
Go

package api
func (api *API) registerRoutes() {
api.router.GET("/", AuthHandler(""), handleGetIndex)
api.router.PATCH("/config", AuthHandler("c:config"), handlePatchConfig)
api.registerServerRoutes()
api.registerServerFileRoutes()
}