Skip to content

Commit 6ca529f

Browse files
fix casing
1 parent d331f2f commit 6ca529f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

client/src/services/SettingsService.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ class SettingsDataService {
9797
return http.post('/settings/blacklist/update', data);
9898
}
9999
updateAccessControlUser(data) {
100-
return http.post('/settings/access-control/user/update', data);
100+
return http.post('/settings/accessControl/user/update', data);
101101
}
102102
downloadAccessControlCSV() {
103-
return http.post('/settings/access-control/downloadCSV', {}, {
103+
return http.post('/settings/accessControl/downloadCSV', {}, {
104104
responseType: 'blob',
105105
});
106106
}
107107
uploadAccessControlCSV(data) {
108-
return http.post('/settings/access-control/uploadCSV', data, {
108+
return http.post('/settings/accessControl/uploadCSV', data, {
109109
headers: {
110110
'Content-Type': 'multipart/form-data',
111111
},

server/routes/settings.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ router.post('/locations/remove', settings.remove_location);
4646

4747
router.post('/whitelist/update', settings.post_update_whitelist_settings);
4848
router.post('/blacklist/update', settings.post_update_blacklist_settings);
49-
router.post('/access-control/user/update', settings.post_update_access_controlled_user);
50-
router.post('/access-control/downloadCSV', settings.post_download_access_control_csv);
51-
router.post('/access-control/uploadCSV', settings.post_upload_access_control_csv);
49+
router.post('/accessControl/user/update', settings.post_update_access_controlled_user);
50+
router.post('/accessControl/downloadCSV', settings.post_download_access_control_csv);
51+
router.post('/accessControl/uploadCSV', settings.post_upload_access_control_csv);
5252

5353
module.exports = router;

0 commit comments

Comments
 (0)