diff --git a/internal/app/fiber.go b/internal/app/fiber.go index b13947c..af55561 100644 --- a/internal/app/fiber.go +++ b/internal/app/fiber.go @@ -57,7 +57,7 @@ func SetupFiber() error { fiberapp.Post("/admin/login", web.HandleAdminLoginPost) fiberapp.Get("/admin/", web.HandleAdminLinkIndexGet) - fiberapp.Get("/admin/links/add", web.HandleAdminLinkAddGet) + fiberapp.Get("/admin/links/new", web.HandleAdminLinkNewGet) fiberapp.Static("/admin/", "./web") diff --git a/internal/web/link.go b/internal/web/link.go index 6c102ee..2333205 100644 --- a/internal/web/link.go +++ b/internal/web/link.go @@ -7,7 +7,7 @@ import ( "github.com/gofiber/fiber/v2" ) -func HandleAdminLinkAddGet(c *fiber.Ctx) error { +func HandleAdminLinkNewGet(c *fiber.Ctx) error { return c.Render("add_link", nil) } diff --git a/views/links.tmpl b/views/links.tmpl index fbb4d06..d1e4dd4 100644 --- a/views/links.tmpl +++ b/views/links.tmpl @@ -12,6 +12,8 @@
+ +{{.ID}} | -{{.URL}} | +{{.ID}} | +{{.URL}} |