Add admin page
This commit is contained in:
1 parent
a82f090370
commit
e5c0df6f6f
7 files changed
+137
-4
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/jackc/pgx/v4/pgxpool"
|
||||
"net/http"
|
||||
"trikotwaschliste/database"
|
||||
)
|
||||
|
||||
func AdminMainPage(pool *pgxpool.Pool) gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
c.HTML(http.StatusAccepted, "adminindex.html", database.DbAdminMainpage(pool))
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -25,6 +25,6 @@ func UploadName(pool *pgxpool.Pool) gin.HandlerFunc {
|
||||
|
||||
func Credits() gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
c.HTML(http.StatusAccepted, "credits.html", gin.H{"version":"1.0"})
|
||||
c.HTML(http.StatusAccepted, "credits.html", gin.H{"version":"1.1"})
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user