first commit
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user