mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
fix(labrinth): webhook scopes (#7114)
fix(labrinth): scope paypal & tremendous webhooks in payout scope
This commit is contained in:
@@ -38,7 +38,9 @@ pub fn config(cfg: &mut web::ServiceConfig) {
|
||||
cfg.service(
|
||||
web::scope("/v3/payout")
|
||||
.wrap(default_cors())
|
||||
.configure(payouts::config),
|
||||
.configure(payouts::config)
|
||||
.service(payouts::paypal_webhook)
|
||||
.service(payouts::tremendous_webhook),
|
||||
);
|
||||
cfg.service(
|
||||
web::scope("/v3/project")
|
||||
@@ -56,8 +58,6 @@ pub fn config(cfg: &mut web::ServiceConfig) {
|
||||
.configure(notifications::config)
|
||||
.configure(oauth_clients::config)
|
||||
.configure(organizations::config)
|
||||
.service(payouts::paypal_webhook)
|
||||
.service(payouts::tremendous_webhook)
|
||||
.configure(projects::config)
|
||||
.configure(reports::config)
|
||||
.configure(statistics::config)
|
||||
|
||||
Reference in New Issue
Block a user