diff --git a/conf/routes b/conf/routes index 7e53b9481..9cd0058f8 100644 --- a/conf/routes +++ b/conf/routes @@ -473,7 +473,7 @@ PUT /app/maintenance/:id DELETE /app/maintenance/:id controllers.facility.MaintenancePeriodController.removeMaintenancePeriod(id: Long) ####################################################### -GET /attributes controllers.user.SessionController.getAttributes(request: Request) +GET /app/attributes controllers.user.SessionController.getAttributes(request: Request) # static assets GET /*path controllers.assets.FrontendController.assetOrDefault(path) diff --git a/ui/src/app/administrative/settings/settings.service.ts b/ui/src/app/administrative/settings/settings.service.ts index 555d944da..c56208b44 100644 --- a/ui/src/app/administrative/settings/settings.service.ts +++ b/ui/src/app/administrative/settings/settings.service.ts @@ -10,14 +10,15 @@ import { AppConfig } from 'src/app/administrative/administrative.model'; export class SettingsService { constructor(private http: HttpClient) {} - updateAgreement$ = (config: AppConfig) => this.http.put('/app/settings/agreement', { value: config.eula }); + updateAgreement$ = (config: AppConfig, bypassAgreementUpdate = false) => + this.http.put('/app/settings/agreement', { value: config.eula, majorUpdate: bypassAgreementUpdate }); updateDeadline$ = (config: AppConfig) => this.http.put('/app/settings/deadline', { value: config.reviewDeadline }); updateReservationWindow$ = (config: AppConfig) => this.http.put('/app/settings/reservationWindow', { value: config.reservationWindowSize }); - listAttributes$ = () => this.http.get('/attributes'); + listAttributes$ = () => this.http.get('app/attributes'); getConfig$ = () => this.http.get('/app/config'); }