diff options
| author | Fuwn <[email protected]> | 2022-01-15 02:25:59 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-01-15 02:25:59 +0000 |
| commit | f08230b5490b327ed8d98dcebcbc5eca5c5d2859 (patch) | |
| tree | 7d7494b1c41a81e736267fceebbfe99410c6b15d /src/api/structures | |
| parent | Merge branch 'master' of github.com:WeebDev/lolisafe (diff) | |
| download | host.fuwn.me-f08230b5490b327ed8d98dcebcbc5eca5c5d2859.tar.xz host.fuwn.me-f08230b5490b327ed8d98dcebcbc5eca5c5d2859.zip | |
chore: chibisafe -> Hostess
Diffstat (limited to 'src/api/structures')
| -rw-r--r-- | src/api/structures/Server.js | 2 | ||||
| -rw-r--r-- | src/api/structures/Setting.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/api/structures/Server.js b/src/api/structures/Server.js index b63d06d..859a97f 100644 --- a/src/api/structures/Server.js +++ b/src/api/structures/Server.js @@ -43,7 +43,7 @@ class Server { if ((req.url.includes('/api/album/') || req.url.includes('/zip')) && req.method === 'GET') return next(); // This bypasses the headers.accept if we are accessing the frontend if (!req.url.includes('/api/') && req.method === 'GET') return next(); - if (req.headers.accept && req.headers.accept.includes('application/vnd.chibisafe.json')) return next(); + if (req.headers.accept && req.headers.accept.includes('application/vnd.hostess.json')) return next(); return res.status(405).json({ message: 'Incorrect `Accept` header provided' }); }); this.server.use(bodyParser.urlencoded({ extended: true })); diff --git a/src/api/structures/Setting.js b/src/api/structures/Setting.js index bb37834..a622e04 100644 --- a/src/api/structures/Setting.js +++ b/src/api/structures/Setting.js @@ -118,7 +118,7 @@ const schema = Joi.object({ .label('Meta description') .description('Short and accurate summary of the content of the page'), - metaKeywords: Joi.string().default('chibisafe,lolisafe,upload,uploader,file,vue,images,ssr,file uploader,free') + metaKeywords: Joi.string().default('hostess,strelizia,fuwn,upload,uploader,file,vue,images,ssr,file uploader,free') .meta({ section: Sections.SOCIAL_AND_SHARING }) |