aboutsummaryrefslogtreecommitdiff
path: root/backend/routes/routes.go
diff options
context:
space:
mode:
authorNidboj132 <lol2s@vp.plm>2023-05-06 17:17:05 +0200
committerNidboj132 <lol2s@vp.plm>2023-05-06 17:17:05 +0200
commit8722da97f70d1009d5815f94fe1db7f437e152b8 (patch)
tree9bd24899d5bd1aba5ff058acda5a9dbfc4f0a0a2 /backend/routes/routes.go
parentlogin test (diff)
parentdoc: token endpoint (diff)
downloadlphub-8722da97f70d1009d5815f94fe1db7f437e152b8.tar.gz
lphub-8722da97f70d1009d5815f94fe1db7f437e152b8.tar.bz2
lphub-8722da97f70d1009d5815f94fe1db7f437e152b8.zip
Merge branch 'main' of https://github.com/pektezol/LeastPortals
Diffstat (limited to 'backend/routes/routes.go')
-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 2554fa4..19382ab 100644
--- a/backend/routes/routes.go
+++ b/backend/routes/routes.go
@@ -16,6 +16,7 @@ func InitRoutes(router *gin.Engine) {
16 v1.GET("/", func(c *gin.Context) { 16 v1.GET("/", func(c *gin.Context) {
17 c.File("docs/index.html") 17 c.File("docs/index.html")
18 }) 18 })
19 v1.GET("/token", controllers.GetCookie)
19 v1.GET("/home", middleware.CheckAuth, controllers.Home) 20 v1.GET("/home", middleware.CheckAuth, controllers.Home)
20 v1.GET("/login", controllers.Login) 21 v1.GET("/login", controllers.Login)
21 v1.GET("/profile", middleware.CheckAuth, controllers.Profile) 22 v1.GET("/profile", middleware.CheckAuth, controllers.Profile)