Add admin index page

This commit is contained in:
2020-10-11 23:02:57 +02:00
parent e5c0df6f6f
commit 2a1ef7f2cb
5 changed files with 39 additions and 11 deletions

View File

@@ -21,5 +21,6 @@ func RoutesInit(router *gin.Engine, pool *pgxpool.Pool, config *models.Config) {
// Basic auth routes
authorized.GET("/", handler.AdminMainPage(pool))
authorized.POST("/changename", handler.ChangeName(pool))
}