aboutsummaryrefslogtreecommitdiff
path: root/backend/routes
diff options
context:
space:
mode:
authorNidboj132 <lol2s@vp.plm>2023-05-06 18:58:55 +0200
committerNidboj132 <lol2s@vp.plm>2023-05-06 18:58:55 +0200
commit97c0d681d2b24f12327982fee88000c84424d2c8 (patch)
tree0829ced3f214de97de28f77bfdb7a87725b77ce2 /backend/routes
parentlogin (diff)
parentMerge branch 'main' of https://github.com/pektezol/LeastPortals (diff)
downloadlphub-97c0d681d2b24f12327982fee88000c84424d2c8.tar.gz
lphub-97c0d681d2b24f12327982fee88000c84424d2c8.tar.bz2
lphub-97c0d681d2b24f12327982fee88000c84424d2c8.zip
Merge branch 'main' of https://github.com/pektezol/LeastPortals
Diffstat (limited to 'backend/routes')
-rw-r--r--backend/routes/routes.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/routes/routes.go b/backend/routes/routes.go
index 19382ab..96da1ce 100644
--- a/backend/routes/routes.go
+++ b/backend/routes/routes.go
@@ -17,6 +17,7 @@ func InitRoutes(router *gin.Engine) {
17 c.File("docs/index.html") 17 c.File("docs/index.html")
18 }) 18 })
19 v1.GET("/token", controllers.GetCookie) 19 v1.GET("/token", controllers.GetCookie)
20 v1.DELETE("/token", controllers.DeleteCookie)
20 v1.GET("/home", middleware.CheckAuth, controllers.Home) 21 v1.GET("/home", middleware.CheckAuth, controllers.Home)
21 v1.GET("/login", controllers.Login) 22 v1.GET("/login", controllers.Login)
22 v1.GET("/profile", middleware.CheckAuth, controllers.Profile) 23 v1.GET("/profile", middleware.CheckAuth, controllers.Profile)