mirror of
https://github.com/cubixle/tuu.git
synced 2026-04-24 21:24:43 +01:00
SAVEPOINT
This commit is contained in:
4
tuu.go
4
tuu.go
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user