init(web): add settings page
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user