diff options
| author | Nidboj132 <lol2s@vp.plm> | 2023-05-06 17:17:05 +0200 |
|---|---|---|
| committer | Nidboj132 <lol2s@vp.plm> | 2023-05-06 17:17:05 +0200 |
| commit | 8722da97f70d1009d5815f94fe1db7f437e152b8 (patch) | |
| tree | 9bd24899d5bd1aba5ff058acda5a9dbfc4f0a0a2 /backend/routes | |
| parent | login test (diff) | |
| parent | doc: token endpoint (diff) | |
| download | lphub-8722da97f70d1009d5815f94fe1db7f437e152b8.tar.gz lphub-8722da97f70d1009d5815f94fe1db7f437e152b8.tar.bz2 lphub-8722da97f70d1009d5815f94fe1db7f437e152b8.zip | |
Merge branch 'main' of https://github.com/pektezol/LeastPortals
Diffstat (limited to 'backend/routes')
| -rw-r--r-- | backend/routes/routes.go | 1 |
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) |