Update main.go

This commit is contained in:
divyam234 2023-08-25 17:32:35 +05:30 committed by GitHub
parent d584a8a500
commit cb7d44fd72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"},