SAVEPOINT

This commit is contained in:
2017-11-11 20:47:15 +00:00
parent 01cbb70537
commit 058a647205

4
tuu.go
View File

@@ -25,6 +25,8 @@ type App struct {
}
func (a *App) Serve(cfg Config) error {
log.Printf("http server running @ %s:%s", cfg.IPAddr, cfg.Port)
r := mux.NewRouter()
for _, route := range a.router.GetRoutes() {
@@ -61,7 +63,5 @@ func (a *App) Serve(cfg Config) error {
if err := server.ListenAndServe(); err != nil {
return err
}
log.Printf("http server running @ %s:%s", cfg.IPAddr, cfg.Port)
return nil
}