From 886c574c1ca7cd56c21c920aac4c0f91e4fda692 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Sun, 30 Oct 2022 14:46:17 +0300 Subject: (#4) will work on it later --- backend/controllers/userController.go | 4 ++-- backend/routes/routes.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'backend') diff --git a/backend/controllers/userController.go b/backend/controllers/userController.go index bd6cef4..87a9427 100644 --- a/backend/controllers/userController.go +++ b/backend/controllers/userController.go @@ -83,7 +83,7 @@ func FetchUser(c *gin.Context) { return } -func UpdateUserCountry(c *gin.Context) { +/*func UpdateUserCountry(c *gin.Context) { id := c.Param("id") cc := c.Param("country") // Check if id is all numbers and 17 length @@ -170,4 +170,4 @@ func UpdateUserCountry(c *gin.Context) { }, }) return -} +}*/ diff --git a/backend/routes/routes.go b/backend/routes/routes.go index 9480fe3..70266b9 100644 --- a/backend/routes/routes.go +++ b/backend/routes/routes.go @@ -18,6 +18,6 @@ func InitRoutes(router *gin.Engine) { v1.GET("/logout", middleware.CheckAuth, controllers.Logout) v1.GET("/profile", middleware.CheckAuth, controllers.Profile) v1.GET("/user/:id", middleware.CheckAuth, controllers.FetchUser) - v1.PUT("user/:id/:country", middleware.CheckAuth, controllers.UpdateUserCountry) + //v1.PUT("user/:id/:country", middleware.CheckAuth, controllers.UpdateUserCountry) } } -- cgit v1.2.3