summaryrefslogtreecommitdiff
path: root/internal/web/base.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/base.go')
-rw-r--r--internal/web/base.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/internal/web/base.go b/internal/web/base.go
index eabde676c..2759c3f9e 100644
--- a/internal/web/base.go
+++ b/internal/web/base.go
@@ -57,13 +57,8 @@ func (m *Module) baseHandler(c *gin.Context) {
return
}
- // FIXME: fill in more variables?
c.HTML(http.StatusOK, "index.tmpl", gin.H{
- "instance": instance,
- "countUsers": 3,
- "countStatuses": 42069,
- "version": "1.0.0",
- "adminUsername": "@admin",
+ "instance": instance,
})
}
@@ -101,6 +96,9 @@ func (m *Module) Route(s router.Router) error {
// serve front-page
s.AttachHandler(http.MethodGet, "/", m.baseHandler)
+ // serve statuses
+ s.AttachHandler(http.MethodGet, "/:user/statuses/:id", m.threadTemplateHandler)
+
// 404 handler
s.AttachNoRouteHandler(m.NotFoundHandler)