Skip to content

Commit

Permalink
Update accreditation auth
Browse files Browse the repository at this point in the history
  • Loading branch information
DaevMithran committed Oct 4, 2024
1 parent 60ce93f commit 9982c7a
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions src/middleware/auth/routes/api/accreditation-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,23 @@ import { AuthRuleProvider } from '../auth-rule-provider.js';
export class AccreditationAuthRuleProvider extends AuthRuleProvider {
constructor() {
super();
this.registerRule('/trust-registry/accreditation/issue', 'POST', 'issue:accreditation:testnet');
this.registerRule('/trust-registry/accreditation/verify', 'POST', 'verify:accreditation:testnet', {
skipNamespace: true,
});
this.registerRule('/trust-registry/accreditation/issue', 'POST', 'issue:accreditation:mainnet');
this.registerRule('/trust-registry/accreditation/verify', 'POST', 'verify:accreditation:mainnet', {
skipNamespace: true,
});
this.registerRule('/trust-registry/accreditation/issue', 'POST', 'issue-accreditation:trust-registry:testnet');
this.registerRule(
'/trust-registry/accreditation/verify',
'POST',
'verify-accreditation:trust-registry:testnet',
{
skipNamespace: true,
}
);
this.registerRule('/trust-registry/accreditation/issue', 'POST', 'issue-accreditation:trust-registry:mainnet');
this.registerRule(
'/trust-registry/accreditation/verify',
'POST',
'verify-accreditation:trust-registry:mainnet',
{
skipNamespace: true,
}
);
}
}

0 comments on commit 9982c7a

Please sign in to comment.