diff --git a/app/web/routes.go b/app/web/routes.go index 12ba5b1..a9550b3 100644 --- a/app/web/routes.go +++ b/app/web/routes.go @@ -14,4 +14,13 @@ func RegisterRoutes(f *flamego.Flame) { }) // item list route - lists all of the items in the database + f.Group("/item", func() { + f.Get("/list", func(t template.Template, data template.Data) { + t.HTML(http.StatusOK, "item/list") + }) + + f.Get("/create", func(t template.Template, data template.Data) { + t.HTML(http.StatusOK, "item/create") + }) + }) } diff --git a/views/index.html b/views/index.html index fec188a..0389641 100644 --- a/views/index.html +++ b/views/index.html @@ -1,11 +1,9 @@ -{{ template "layout" . }} +{{ template "layout_header" . }} -{{ define "title" }}Dashboard{{ end }} - -{{ define "content" }} -
This is a test.
-This is a test.