api /resources/:userid working

This commit is contained in:
arnaucube
2019-06-14 20:43:18 +02:00
parent be27edda88
commit c07b4edd62
7 changed files with 78 additions and 19 deletions

View File

@@ -19,6 +19,9 @@ func newApiService() *gin.Engine {
api.GET("/info", handleInfo)
api.POST("/register", handleRegister)
api.POST("/login", handleLogin)
// TODO add jwt checker
api.GET("/resources/:userid", handleGetResources)
return api
}