This commit is contained in:
syuilo
2020-02-07 19:15:08 +09:00
parent 04db5944d1
commit ff059d1268
5 changed files with 43 additions and 2 deletions

View File

@@ -96,6 +96,11 @@ router.get('/api.json', async ctx => {
ctx.body = genOpenapiSpec();
});
router.get('/docs.json', async ctx => {
const lang = ctx.query.lang;
// TODO: glob mds and extract title
});
const getFeed = async (acct: string) => {
const { username, host } = parseAcct(acct);
const user = await Users.findOne({