mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-09 00:29:57 +08:00
Update main.go
This commit is contained in:
parent
d584a8a500
commit
cb7d44fd72
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -39,7 +39,7 @@ func main() {
|
||||||
|
|
||||||
scheduler := gocron.NewScheduler(time.UTC)
|
scheduler := gocron.NewScheduler(time.UTC)
|
||||||
|
|
||||||
scheduler.Every(4).Hours().Do(cron.FilesDeleteJob)
|
scheduler.Every(1).Hours().Do(cron.FilesDeleteJob)
|
||||||
|
|
||||||
router.Use(cors.New(cors.Config{
|
router.Use(cors.New(cors.Config{
|
||||||
AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"},
|
AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"},
|
||||||
|
|
Loading…
Reference in a new issue