Skip to content

Commit

Permalink
Add Production Routes to API Guard
Browse files Browse the repository at this point in the history
* Production is set to have /api/ added to all routes breaking how the maintenance guard normally checks.
  • Loading branch information
Daniel Haselhan committed Mar 27, 2024
1 parent 050ce29 commit c49ab99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/apps/alcs/src/portal/guards/maintenance.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export class MaintenanceGuard implements CanActivate {

if (
req.routeOptions.url.startsWith('/portal') ||
req.routeOptions.url.startsWith('/public')
req.routeOptions.url.startsWith('/public') ||
req.routeOptions.url.startsWith('/api/portal') ||
req.routeOptions.url.startsWith('/api/public')
) {
const maintenanceMode = await this.configurationRepository.findOne({
where: {
Expand Down

0 comments on commit c49ab99

Please sign in to comment.