adding more server/client communication commands, need to fix echo path params
This commit is contained in:
@@ -49,7 +49,10 @@ func main() {
|
||||
server.Echo = e
|
||||
//Start the routes
|
||||
//e.GET("/hello", server.Hello)
|
||||
e.GET("/info/:repoName", server.GetInfo)
|
||||
e.GET("/lock/:type/:name", server.LockFile)
|
||||
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.Logger.Fatal(e.Start(fmt.Sprintf("%s:%d", server.Config.BindIP, server.Config.Port)))
|
||||
}
|
||||
|
Reference in New Issue
Block a user