From cd198d8fbf1687d964e340878790e0dac1ffbce1 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 8 Apr 2018 17:23:06 +0900 Subject: [PATCH] :v: --- src/server/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/server/index.ts b/src/server/index.ts index 61a8739b43..abb8992da5 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -50,6 +50,14 @@ app.use((req, res, next) => { } }); +// 互換性のため +app.post('/meta', (req, res) => { + res.header('Access-Control-Allow-Origin', '*'); + res.json({ + version: 'nighthike' + }); +}); + /** * Register modules */