aboutsummaryrefslogtreecommitdiff
path: root/backend/routes/routes.go
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-01-14 11:51:51 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-01-14 11:51:51 +0300
commit8598cfe1e8dd479484760f46ab33a111f97294c4 (patch)
tree5eba4f82f5977ba12d3e61b5e5e7b2bae50c5295 /backend/routes/routes.go
parentrecord submission looks like its working! (#23, #20) (diff)
downloadlphub-8598cfe1e8dd479484760f46ab33a111f97294c4.tar.gz
lphub-8598cfe1e8dd479484760f46ab33a111f97294c4.tar.bz2
lphub-8598cfe1e8dd479484760f46ab33a111f97294c4.zip
upload record fix, download demo success (#24)
Diffstat (limited to '')
-rw-r--r--backend/routes/routes.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/routes/routes.go b/backend/routes/routes.go
index f9256ca..e9de891 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.GET("/user/:id", middleware.CheckAuth, controllers.FetchUser) 19 v1.GET("/user/:id", middleware.CheckAuth, controllers.FetchUser)
20 v1.POST("/record/:id", middleware.CheckAuth, controllers.CreateRecordWithDemo) 20 v1.GET("/demo", controllers.DownloadDemoWithID)
21 v1.POST("/maps/:id/record", middleware.CheckAuth, controllers.CreateRecordWithDemo)
21 } 22 }
22} 23}