very basic auth

- user is requested to login when trying to access content
This commit is contained in:
2025-09-10 21:02:19 +01:00
parent 167f138647
commit dc72c5414e
34 changed files with 349 additions and 79 deletions
+1 -1
View File
@@ -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)