aboutsummaryrefslogtreecommitdiff
path: root/backend/routes/routes.go
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-05-06 19:53:25 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-05-06 19:53:25 +0300
commitfbdc0b813944937af29da74f4790e52a2522c480 (patch)
tree94f47aaeec7bdf4eab60db340ef654ac391ed9e9 /backend/routes/routes.go
parentdoc: token endpoint (diff)
downloadlphub-fbdc0b813944937af29da74f4790e52a2522c480.tar.gz
lphub-fbdc0b813944937af29da74f4790e52a2522c480.tar.bz2
lphub-fbdc0b813944937af29da74f4790e52a2522c480.zip
feat: logout endpoint
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 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)