wings/api/routes.go
Jakob Schrettenbrunner 059ea8a047 add all old routes and handlers
add html index page when not authenticated
fixed auth's handling of empty permissions
2017-08-02 22:02:34 +02:00

19 lines
381 B
Go

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