diff --git a/frontend/react/src/olympusapp.ts b/frontend/react/src/olympusapp.ts index f61fac9d..c84e9008 100644 --- a/frontend/react/src/olympusapp.ts +++ b/frontend/react/src/olympusapp.ts @@ -224,7 +224,7 @@ export class OlympusApp { body: "", // Send the data in JSON format }; - fetch(this.getExpressAddress() + `/resources/profile/resetall`, requestOptions) + fetch(this.getExpressAddress() + `/resources/profile/delete/all`, requestOptions) .then((response) => { if (response.status === 200) { console.log(`All profiles reset correctly`); diff --git a/frontend/server/src/routes/resources.ts b/frontend/server/src/routes/resources.ts index 44a6c4af..33ae8d27 100644 --- a/frontend/server/src/routes/resources.ts +++ b/frontend/server/src/routes/resources.ts @@ -54,7 +54,7 @@ module.exports = function (configLocation) { } }); - router.put("/profile/resetall", function (req, res, next) { + router.put("/profile/delete/all", function (req, res, next) { if (fs.existsSync(configLocation)) { let rawdata = fs.readFileSync(configLocation, "utf-8"); const config = JSON.parse(rawdata);