diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-12-27 21:49:39 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-12-27 21:49:39 +0900 |
| commit | 0e7778bebf98d951a4d1c4e4c75e97067082b17d (patch) | |
| tree | 5ac2f2489a779ea2ef0ec14280884c59dfdac437 /src/server/web | |
| parent | fix doc (diff) | |
| download | sharkey-0e7778bebf98d951a4d1c4e4c75e97067082b17d.tar.gz sharkey-0e7778bebf98d951a4d1c4e4c75e97067082b17d.tar.bz2 sharkey-0e7778bebf98d951a4d1c4e4c75e97067082b17d.zip | |
refactor
Diffstat (limited to 'src/server/web')
| -rw-r--r-- | src/server/web/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/web/index.ts b/src/server/web/index.ts index 468ece5359..57ce9b38a4 100644 --- a/src/server/web/index.ts +++ b/src/server/web/index.ts @@ -110,7 +110,7 @@ router.get('/docs.json', async ctx => { ctx.body = []; return; } - const paths = glob.sync(__dirname + `/../../../src/docs/*.${lang}.md`); + const paths = glob.sync(__dirname + `/../../../src/docs/${lang}/*.md`); const docs: { path: string; title: string; }[] = []; for (const path of paths) { const md = fs.readFileSync(path, { encoding: 'utf8' }); |