working on lock command

This commit is contained in:
2020-06-08 22:52:40 -04:00
parent c2e74ce7f4
commit 441a9ed233
9 changed files with 132 additions and 48 deletions

View File

@@ -49,10 +49,10 @@ func main() {
server.Echo = e
//Start the routes
//e.GET("/hello", server.Hello)
e.GET("/:repo/info/", server.GetInfo)
e.GET("/:repo/lock/:type/:name", server.LockFile)
e.GET("/:repo/refresh", server.Refresh)
e.GET("/:repo/revert/:hash", server.Revert) // TODO: Might not need this, just add extra args to pull?
e.GET("/:repo/pull/:branch", server.Pull)
e.GET("/info/:repo", server.GetInfo)
e.GET("/lock/:repo/:type/:name", server.LockFile)
e.GET("/refresh/:repo", server.Refresh)
e.GET("/revert/:repo/:hash", server.Revert) // TODO: Might not need this, just add extra args to pull?
e.GET("/pull/:repo/:branch", server.Pull)
e.Logger.Fatal(e.Start(fmt.Sprintf("%s:%d", server.Config.BindIP, server.Config.Port)))
}