aboutsummaryrefslogtreecommitdiff
path: root/backend/routes
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-05-06 17:41:12 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-05-06 17:41:12 +0300
commit3be6a02ba0a6200e71bd0b97a040075966dfc302 (patch)
treeb1d444156fc909eebc438b324bf5571a11a6ec67 /backend/routes
parentMerge pull request #41 from Nidboj132/main (diff)
downloadlphub-3be6a02ba0a6200e71bd0b97a040075966dfc302.tar.gz
lphub-3be6a02ba0a6200e71bd0b97a040075966dfc302.tar.bz2
lphub-3be6a02ba0a6200e71bd0b97a040075966dfc302.zip
feat: get token endpoint
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 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)