diff options
Diffstat (limited to 'src/server/web/manifest.ts')
| -rw-r--r-- | src/server/web/manifest.ts | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/server/web/manifest.ts b/src/server/web/manifest.ts deleted file mode 100644 index 918fe27c03..0000000000 --- a/src/server/web/manifest.ts +++ /dev/null @@ -1,15 +0,0 @@ -import * as Koa from 'koa'; -import * as manifest from './manifest.json'; -import { fetchMeta } from '@/misc/fetch-meta'; - -module.exports = async (ctx: Koa.Context) => { - const json = JSON.parse(JSON.stringify(manifest)); - - const instance = await fetchMeta(true); - - json.short_name = instance.name || 'Misskey'; - json.name = instance.name || 'Misskey'; - - ctx.set('Cache-Control', 'max-age=300'); - ctx.body = json; -}; |