1
0
mirror of https://github.com/JustKato/FreePad.git synced 2026-02-23 15:50:46 +02:00

Working on the admin interface

+ Implemented login token
+ Routing
+ Admin controller
+ Login Page
* Updated `.env` example
This commit is contained in:
2022-06-02 23:53:32 +03:00
parent 662dad90b7
commit d949b3decb
6 changed files with 164 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
package controllers
import (
"fmt"
"github.com/gin-gonic/gin"
)
func AdminMiddleware(router *gin.RouterGroup) {
// Handl
router.Use(func(ctx *gin.Context) {
// Check which route we are accessing
fmt.Println(`Accesing: `, ctx.Request.RequestURI)
})
}