feat: load player's report
This commit is contained in:
@@ -18,7 +18,6 @@ const (
|
||||
|
||||
func initConfig() func(*controller.Param) {
|
||||
return func(p *controller.Param) {
|
||||
// TODO: initialize base controller settings
|
||||
p.StoragePath = os.Getenv("STORAGE_PATH")
|
||||
}
|
||||
}
|
||||
@@ -40,7 +39,7 @@ func NewRouterExecutor(executor handler.CommandExecutor) Router {
|
||||
return Router{r: setupRouter(initConfig(), executor)}
|
||||
}
|
||||
|
||||
func setupRouter(config controller.Config, executor handler.CommandExecutor) *gin.Engine {
|
||||
func setupRouter(config controller.Configurer, executor handler.CommandExecutor) *gin.Engine {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
r := gin.New()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user