aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-02-03 00:44:22 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-02-03 00:44:22 +0300
commit2c74aed740610ea1afaec70ca424e53907dd6389 (patch)
treeb23b1ceddd124927fb2a279bb9568361caa0e6ff
parentfix: only show top record of a person in the map rankings (obviously) shoutou... (diff)
downloadlphub-2c74aed740610ea1afaec70ca424e53907dd6389.tar.gz
lphub-2c74aed740610ea1afaec70ca424e53907dd6389.tar.bz2
lphub-2c74aed740610ea1afaec70ca424e53907dd6389.zip
actually add update profile route (#30)
-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 b42167a..c219466 100644
--- a/backend/routes/routes.go
+++ b/backend/routes/routes.go
@@ -17,6 +17,7 @@ func InitRoutes(router *gin.Engine) {
17 v1.GET("/login", controllers.Login) 17 v1.GET("/login", controllers.Login)
18 v1.GET("/profile", middleware.CheckAuth, controllers.Profile) 18 v1.GET("/profile", middleware.CheckAuth, controllers.Profile)
19 v1.PUT("/profile", middleware.CheckAuth, controllers.UpdateCountryCode) 19 v1.PUT("/profile", middleware.CheckAuth, controllers.UpdateCountryCode)
20 v1.POST("/profile", middleware.CheckAuth, controllers.UpdateUser)
20 v1.GET("/user/:id", middleware.CheckAuth, controllers.FetchUser) 21 v1.GET("/user/:id", middleware.CheckAuth, controllers.FetchUser)
21 v1.GET("/demo", controllers.DownloadDemoWithID) 22 v1.GET("/demo", controllers.DownloadDemoWithID)
22 v1.GET("/maps/:id", middleware.CheckAuth, controllers.FetchMap) 23 v1.GET("/maps/:id", middleware.CheckAuth, controllers.FetchMap)