feat: Sprint 1 — host model, mock store, dashboard CRUD, HTMX partials

This commit is contained in:
swanadiva
2026-07-07 13:15:56 +07:00
parent 43a19b723a
commit d771925727
7 changed files with 278 additions and 16 deletions
+3 -2
View File
@@ -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"))