mirror of
https://github.com/cubixle/tuu.git
synced 2026-04-24 23:04: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 {
|
func (a *App) Serve(cfg Config) error {
|
||||||
|
log.Printf("http server running @ %s:%s", cfg.IPAddr, cfg.Port)
|
||||||
|
|
||||||
r := mux.NewRouter()
|
r := mux.NewRouter()
|
||||||
|
|
||||||
for _, route := range a.router.GetRoutes() {
|
for _, route := range a.router.GetRoutes() {
|
||||||
@@ -61,7 +63,5 @@ func (a *App) Serve(cfg Config) error {
|
|||||||
if err := server.ListenAndServe(); err != nil {
|
if err := server.ListenAndServe(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("http server running @ %s:%s", cfg.IPAddr, cfg.Port)
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user