first commit

This commit is contained in:
2024-11-19 23:17:14 +01:00
commit 527344b220
12 changed files with 374 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package main
import (
"ron"
"ron-pets/internal/handlers"
)
func router(h *handlers.Handlers, r *ron.Engine) {
htmlRender := ron.NewHTMLRender()
r.Render = htmlRender
r.Static("static", "static")
r.GET("/create", h.CreateToken)
r.GET("/validate", h.ValidateTokenAuthorization)
r.GET("/cookie", h.ValidateTokenCookie)
}