diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-02-13 16:05:01 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-02-13 16:14:03 +0100 |
| commit | 93ae7e0a1ca84fd2df902b7c8d94cdedb671bed6 (patch) | |
| tree | 8ae3814b089d36dee1ed8af08315db3f8b11b0b0 /dashboard/app/main.go | |
| parent | 5c39b01abfb2d0de51e9c995ab8071abd344ae3c (diff) | |
dashboard: move all cron endpoints to cron/
This lets us keep only one access rule and reliefs from the need to keep
handlers and app.yaml in sync for cron jobs that'll be added in the
future.
Diffstat (limited to 'dashboard/app/main.go')
| -rw-r--r-- | dashboard/app/main.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dashboard/app/main.go b/dashboard/app/main.go index f8f7c1ccd..d95e79a62 100644 --- a/dashboard/app/main.go +++ b/dashboard/app/main.go @@ -61,9 +61,9 @@ func initHTTPHandlers() { http.Handle("/"+ns+"/repos", handlerWrapper(handleRepos)) http.Handle("/"+ns+"/bug-stats", handlerWrapper(handleBugStats)) } - http.HandleFunc("/cache_update", cacheUpdate) - http.HandleFunc("/deprecate_assets", handleDeprecateAssets) - http.HandleFunc("/retest_repros", handleRetestRepros) + http.HandleFunc("/cron/cache_update", cacheUpdate) + http.HandleFunc("/cron/deprecate_assets", handleDeprecateAssets) + http.HandleFunc("/cron/retest_repros", handleRetestRepros) } type uiMainPage struct { |
