Initial
This commit is contained in:
17
app/handlers/about.go
Normal file
17
app/handlers/about.go
Normal file
@ -0,0 +1,17 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"fiber-sessions/app/templates"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
var pcAbout templates.PageContext = templates.PageContext{
|
||||
Title: "Welcome to the demo - About",
|
||||
ActivePage: "about",
|
||||
}
|
||||
|
||||
func About(f *fiber.Ctx) error {
|
||||
Render(f, templates.About(pcAbout))
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user