Skip to content

Commit

Permalink
make it behind a flag
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Oct 20, 2024
1 parent 4540c2a commit c6b33e1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions next/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,11 @@ func main() {
r.GET("/github/callback", middleware.SupabaseCookieAuth(), diggerController.GithubAppCallbackPage)
r.GET("/github/callback_fe", middleware.WebhookAuth(), diggerController.GithubAppCallbackPage)
r.POST("/github-app-webhook", diggerController.GithubAppWebHook)
r.GET("/github/setup", controllers.GithubAppSetup)
r.GET("/github/exchange-code", diggerController.GithubSetupExchangeCode)

if val, exists := os.LookupEnv("DIGGER_EXPOSE_GITHUB_APP_WIZARD"); exists && val == "true" {
r.GET("/github/setup", controllers.GithubAppSetup)
r.GET("/github/exchange-code", diggerController.GithubSetupExchangeCode)
}

r.POST("/_internal/process_runs_queue", middleware.WebhookAuth(), diggerController.ProcessRunQueueItems)
// process all drift crontabs
Expand Down

0 comments on commit c6b33e1

Please sign in to comment.