wings/api/routes.go
Jakob Schrettenbrunner 3d789c0541 api: better routes
2017-08-02 23:23:41 +02:00

18 lines
312 B
Go

package api
import (
"github.com/gin-gonic/gin"
)
func (api *API) registerRoutes() {
api.router.GET("/", AuthHandler(""), handleGetIndex)
api.router.PATCH("/config", AuthHandler("c:config"), handlePatchConfig)
api.registerServerRoutes()
api.registerServerFileRoutes()
}
func handle(c *gin.Context) {
}