working on ron-example

This commit is contained in:
2024-11-20 23:09:25 +01:00
parent ea5d85bd19
commit 4f108e1b05
25 changed files with 627 additions and 147 deletions
+19
View File
@@ -0,0 +1,19 @@
package main
import (
"ron"
"ron-pets/internal/handlers"
)
func router(h *handlers.Handlers, r *ron.Engine) {
r.Static("static", "static")
r.USE(UserSessionMiddleware)
r.GET("/put", h.HelloWorld)
//r.GET("/get", h.AnotherHelloWorld)
//
//r.GET("/create", h.CreateToken)
//r.GET("/validate", h.ValidateTokenAuthorization)
//r.GET("/cookie", h.ValidateTokenCookie)
}