Initial commit.
This commit is contained in:
commit
63f43e568c
23 changed files with 1199 additions and 0 deletions
18
controllers/about.go
Normal file
18
controllers/about.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package controllers
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
type About struct {
|
||||
Controller
|
||||
}
|
||||
|
||||
func (a *About) Get(c echo.Context) error {
|
||||
p := NewPage(c)
|
||||
p.Layout = "main"
|
||||
p.Name = "about"
|
||||
p.Data = "This is the about page"
|
||||
|
||||
return a.RenderPage(c, p)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue