aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/Http/ServiceController.js11
-rw-r--r--app/Controllers/Http/StaticController.js2
2 files changed, 1 insertions, 12 deletions
diff --git a/app/Controllers/Http/ServiceController.js b/app/Controllers/Http/ServiceController.js
index 4a4a8c4..90055b6 100644
--- a/app/Controllers/Http/ServiceController.js
+++ b/app/Controllers/Http/ServiceController.js
@@ -179,17 +179,6 @@ class ServiceController {
179 }); 179 });
180 } else { 180 } else {
181 // Update service info 181 // Update service info
182 const validation = await validateAll(request.all(), {
183 name: 'required',
184 });
185 if (validation.fails()) {
186 return response.status(401).send({
187 message: 'Invalid POST arguments',
188 messages: validation.messages(),
189 status: 401,
190 });
191 }
192
193 const data = request.all(); 182 const data = request.all();
194 const { 183 const {
195 id, 184 id,
diff --git a/app/Controllers/Http/StaticController.js b/app/Controllers/Http/StaticController.js
index cd3b752..265578f 100644
--- a/app/Controllers/Http/StaticController.js
+++ b/app/Controllers/Http/StaticController.js
@@ -272,7 +272,7 @@ class StaticController {
272 if (await fs.pathExists(announcement)) { 272 if (await fs.pathExists(announcement)) {
273 return response.download(announcement); 273 return response.download(announcement);
274 } 274 }
275 return response.send('No announcement found.'); 275 return response.status(404).send('No announcement found.');
276 } 276 }
277} 277}
278 278