Move controller and page to new package.

This commit is contained in:
mikestefanello 2021-12-12 22:09:13 -05:00
parent c48f6bb9f4
commit 4e2f186dad
11 changed files with 29 additions and 18 deletions

View file

@ -1,15 +1,17 @@
package controllers
import (
"goweb/controller"
"github.com/labstack/echo/v4"
)
type About struct {
Controller
controller.Controller
}
func (a *About) Get(c echo.Context) error {
p := NewPage(c)
p := controller.NewPage(c)
p.Layout = "main"
p.Name = "about"
p.Title = "About"