Renamed controllers package to routes.
This commit is contained in:
parent
60dedc0944
commit
869c507737
11 changed files with 12 additions and 12 deletions
|
|
@ -1,23 +0,0 @@
|
|||
package controllers
|
||||
|
||||
import (
|
||||
"goweb/controller"
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
type About struct {
|
||||
controller.Controller
|
||||
}
|
||||
|
||||
func (a *About) Get(c echo.Context) error {
|
||||
p := controller.NewPage(c)
|
||||
p.Layout = "main"
|
||||
p.Name = "about"
|
||||
p.Title = "About"
|
||||
p.Data = "This is the about page"
|
||||
p.Cache.Enabled = true
|
||||
p.Cache.Tags = []string{"page_about", "page:list"}
|
||||
|
||||
return a.RenderPage(c, p)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue