Skip to content

Commit

Permalink
removed setHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
XK4MiLX authored Feb 15, 2024
1 parent 5155e2b commit 0284b8b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ZelBack/src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,11 +356,9 @@ module.exports = (app, expressWs) => {
generalService.whitelistedRepositories(req, res);
});
app.post('/apps/verifyappregistrationspecifications', (req, res) => { // returns formatted app specifications
res.setHeader('Content-Type', 'application/json');
appsService.verifyAppRegistrationParameters(req, res);
});
app.post('/apps/verifyappupdatespecifications', (req, res) => { // returns formatted app specifications
res.setHeader('Content-Type', 'application/json');
appsService.verifyAppUpdateParameters(req, res);
});
app.get('/apps/deploymentinformation', cache('30 seconds'), (req, res) => {
Expand Down Expand Up @@ -631,14 +629,10 @@ module.exports = (app, expressWs) => {
backupRestoreService.downloadLocalFile(req, res);
});
app.post('/apps/appendbackuptask', (req, res) => {
res.setHeader('Content-Type', 'application/json; charset=utf-8');
res.setHeader('Transfer-Encoding', 'chunked');
appsService.appendBackupTask(req, res);
});

app.post('/apps/appendrestoretask', (req, res) => {
res.setHeader('Content-Type', 'application/json; charset=utf-8');
res.setHeader('Transfer-Encoding', 'chunked');
app.post('/apps/appendrestoretask', (req, res) => {;
appsService.appendRestoreTask(req, res);
});

Expand Down

0 comments on commit 0284b8b

Please sign in to comment.