10 lines
238 B
Go
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()
|
|
}
|