working on lock command
This commit is contained in:
@@ -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)))
|
||||
}
|
||||
|
Reference in New Issue
Block a user