feat: Sprint 1 — host model, mock store, dashboard CRUD, HTMX partials
This commit is contained in:
+3
-2
@@ -16,7 +16,7 @@ func main() {
|
||||
engine := html.New("./views", ".html")
|
||||
engine.Reload(true)
|
||||
engine.AddFunc("svg", func(name string) string {
|
||||
return "" // TODO: inline SVG icons
|
||||
return ""
|
||||
})
|
||||
|
||||
app := fiber.New(fiber.Config{
|
||||
@@ -29,7 +29,8 @@ func main() {
|
||||
app.Static("/static", "./static")
|
||||
|
||||
app.Get("/", handler.Dashboard)
|
||||
app.Get("/hosts", handler.Dashboard)
|
||||
app.Get("/hosts", handler.DashboardList)
|
||||
app.Post("/hosts", handler.CreateHost)
|
||||
app.Get("/api/health", handler.Health)
|
||||
|
||||
log.Fatal(app.Listen(":1947"))
|
||||
|
||||
Reference in New Issue
Block a user