basic server/client http communication setup

This commit is contained in:
2020-06-06 21:02:58 -04:00
parent 23dd5090e3
commit dd3fd7c4ae
9 changed files with 65 additions and 93 deletions

View File

@@ -46,7 +46,9 @@ func main() {
log.Info("Logger starting...")
// Setup the web server
e := echo.New()
server.Echo = e
//Start the routes
//server.Echo.GET("/info")
e.GET("/hello", server.Hello)
e.GET("/info/:repoName", server.GetInfo)
e.Logger.Fatal(e.Start(fmt.Sprintf("%s:%d", server.Config.BindIP, server.Config.Port)))
}