Compare commits
2 Commits
cd1f1dfb44
...
b955f583f4
Author | SHA1 | Date | |
---|---|---|---|
b955f583f4 | |||
5987d1e892 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,3 +13,5 @@
|
||||
|
||||
# Dependency directories (remove the comment below to include it)
|
||||
# vendor/
|
||||
|
||||
zengo
|
||||
|
@ -59,6 +59,7 @@ type App struct {
|
||||
}
|
||||
|
||||
func (a *App) Run(config *config.Config) error {
|
||||
a.Router = setupRouter()
|
||||
r := setupRouter()
|
||||
a.Router = r
|
||||
return a.Router.Run(fmt.Sprintf("%s:%d", config.App.Addr, config.App.Port))
|
||||
}
|
||||
|
2
main.go
2
main.go
@ -8,6 +8,6 @@ import (
|
||||
func main() {
|
||||
config := config.GetConfig()
|
||||
|
||||
app := &app.App{}
|
||||
app := app.App{}
|
||||
app.Run(config)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user