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