Replace controllers.DBDumpPath to databasedumpsController
Cette révision appartient à :
Parent
2c8344faf9
révision
644d111c9a
1 fichiers modifiés avec 3 ajouts et 2 suppressions
5
main.go
5
main.go
|
@ -11,6 +11,7 @@ import (
|
|||
|
||||
"github.com/NyaaPantsu/nyaa/config"
|
||||
"github.com/NyaaPantsu/nyaa/controllers"
|
||||
"github.com/NyaaPantsu/nyaa/controllers/databasedumps"
|
||||
"github.com/NyaaPantsu/nyaa/models"
|
||||
"github.com/NyaaPantsu/nyaa/utils/cookies"
|
||||
"github.com/NyaaPantsu/nyaa/utils/log"
|
||||
|
@ -24,9 +25,9 @@ var buildversion string
|
|||
// RunServer runs webapp mainloop
|
||||
func RunServer(conf *config.Config) {
|
||||
// TODO Use config from cli
|
||||
os.Mkdir(controllers.DatabaseDumpPath, 0700)
|
||||
os.Mkdir(databasedumpsController.DatabaseDumpPath, 0700)
|
||||
// TODO Use config from cli
|
||||
os.Mkdir(controllers.GPGPublicKeyPath, 0700)
|
||||
os.Mkdir(databasedumpsController.GPGPublicKeyPath, 0700)
|
||||
|
||||
http.Handle("/", controllers.CSRFRouter)
|
||||
|
||||
|
|
Référencer dans un nouveau ticket