init(web): add settings page

This commit is contained in:
2025-01-07 13:25:25 +03:00
parent 3d35de3234
commit 14a7104c5f
5 changed files with 164 additions and 0 deletions
+4
View File
@@ -18,3 +18,7 @@ func root(c *gin.Context) {
func quotes(c *gin.Context) {
c.HTML(http.StatusOK, "quotes.html", nil)
}
func settings(c *gin.Context) {
c.HTML(http.StatusOK, "settings.html", nil)
}
+1
View File
@@ -21,6 +21,7 @@ func Serve(addr string) {
r.Static("/static", "./static")
r.GET("/", api.MiddlewareAuth, root)
r.GET("/quotes", api.MiddlewareAuth, middlewareAuth, quotes)
r.GET("/settings", api.MiddlewareAuth, middlewareAuth, settings)
r.Run(addr)
}