diff options
author | 2019-10-14 18:11:09 +0200 | |
---|---|---|
committer | 2019-10-14 18:11:09 +0200 | |
commit | 3f1bea40281af57df9aae3888634123addefe3dd (patch) | |
tree | d7bb76ed29cfcf1cf444e5365b92e06e18794c2f /src/server | |
parent | Fix AdonisJs errors (diff) | |
download | ferdium-app-3f1bea40281af57df9aae3888634123addefe3dd.tar.gz ferdium-app-3f1bea40281af57df9aae3888634123addefe3dd.tar.zst ferdium-app-3f1bea40281af57df9aae3888634123addefe3dd.zip |
Fix lint
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/app/Controllers/Http/RecipeController.js | 3 | ||||
-rw-r--r-- | src/server/resources/views/layouts/main.edge | 2 | ||||
-rw-r--r-- | src/server/start/routes.js | 4 |
3 files changed, 3 insertions, 6 deletions
diff --git a/src/server/app/Controllers/Http/RecipeController.js b/src/server/app/Controllers/Http/RecipeController.js index c887ea00e..71ac12c0f 100644 --- a/src/server/app/Controllers/Http/RecipeController.js +++ b/src/server/app/Controllers/Http/RecipeController.js | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | const Recipe = use('App/Models/Recipe'); | 2 | const Recipe = use('App/Models/Recipe'); |
3 | const Helpers = use('Helpers'); | ||
4 | const Drive = use('Drive'); | 3 | const Drive = use('Drive'); |
5 | const { | 4 | const { |
6 | validateAll, | 5 | validateAll, |
@@ -8,8 +7,6 @@ const { | |||
8 | const Env = use('Env'); | 7 | const Env = use('Env'); |
9 | 8 | ||
10 | const fetch = require('node-fetch'); | 9 | const fetch = require('node-fetch'); |
11 | const path = require('path'); | ||
12 | const fs = require('fs-extra'); | ||
13 | 10 | ||
14 | class RecipeController { | 11 | class RecipeController { |
15 | // List official and custom recipes | 12 | // List official and custom recipes |
diff --git a/src/server/resources/views/layouts/main.edge b/src/server/resources/views/layouts/main.edge index b6cc8ca23..77af30327 100644 --- a/src/server/resources/views/layouts/main.edge +++ b/src/server/resources/views/layouts/main.edge | |||
@@ -5,7 +5,7 @@ | |||
5 | <meta charset="UTF-8"> | 5 | <meta charset="UTF-8"> |
6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> | 7 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> |
8 | <title>ferdi-server</title> | 8 | <title>ferdi-internal-server</title> |
9 | 9 | ||
10 | {{ style('css/vanilla') }} | 10 | {{ style('css/vanilla') }} |
11 | {{ style('css/main') }} | 11 | {{ style('css/main') }} |
diff --git a/src/server/start/routes.js b/src/server/start/routes.js index d2ddfbd38..333a5ba06 100644 --- a/src/server/start/routes.js +++ b/src/server/start/routes.js | |||
@@ -8,7 +8,6 @@ | |||
8 | 8 | ||
9 | /** @type {typeof import('@adonisjs/framework/src/Route/Manager')} */ | 9 | /** @type {typeof import('@adonisjs/framework/src/Route/Manager')} */ |
10 | const Route = use('Route'); | 10 | const Route = use('Route'); |
11 | const Env = use('Env'); | ||
12 | 11 | ||
13 | const OnlyAllowFerdi = async ({ request, response }, next) => { | 12 | const OnlyAllowFerdi = async ({ request, response }, next) => { |
14 | const user = request.header('User-Agent'); | 13 | const user = request.header('User-Agent'); |
@@ -16,7 +15,8 @@ const OnlyAllowFerdi = async ({ request, response }, next) => { | |||
16 | return response.status(403).redirect('/'); | 15 | return response.status(403).redirect('/'); |
17 | } | 16 | } |
18 | 17 | ||
19 | await next() | 18 | await next(); |
19 | return true; | ||
20 | }; | 20 | }; |
21 | 21 | ||
22 | // Health: Returning if all systems function correctly | 22 | // Health: Returning if all systems function correctly |