1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-27 06:18:40 +09:00

Create robots.txt (#4439)

* Create robots.txt

* Update index.ts
This commit is contained in:
Acid Chicken (硫酸鶏) 2019-03-07 20:11:04 +09:00 committed by GitHub
parent cd3170dabd
commit 1f63f50343
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

4
assets/robots.txt Normal file
View File

@ -0,0 +1,4 @@
user-agent: *
allow: /
# todo: sitemap

View File

@ -79,6 +79,12 @@ router.get('/manifest.json', async ctx => {
});
});
router.get('/robots.txt', async ctx => {
await send(ctx as any, '/assets/robots.txt', {
root: client
});
});
//#endregion
// Docs