From 93ae7e0a1ca84fd2df902b7c8d94cdedb671bed6 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Mon, 13 Feb 2023 16:05:01 +0100 Subject: 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. --- dashboard/app/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dashboard/app/main.go') 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 { -- cgit mrf-deployment