very basic auth
- user is requested to login when trying to access content
This commit is contained in:
+1
-1
@@ -112,7 +112,7 @@ func updateType(c *gin.Context) {
|
||||
c.Header("HX-Trigger", "{\"formState\":\"Success\"}")
|
||||
}
|
||||
|
||||
func RouteTypes(router *gin.Engine) {
|
||||
func RouteTypes(router *gin.RouterGroup) {
|
||||
router.GET(TypesPath, typesGlobalPage)
|
||||
router.GET(TypesPath+"/:id", typePage)
|
||||
router.POST(TypesPath, typesGlobalPage)
|
||||
|
||||
Reference in New Issue
Block a user