mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 20:13:09 +02:00
Fix bug
This commit is contained in:
parent
7bfa56d199
commit
dfca7f1340
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ router.get('/*/api/entities/*', async ctx => {
|
|||
const lang = ctx.params[0];
|
||||
const entity = ctx.params[1];
|
||||
|
||||
const x = yaml.safeLoad(fs.readFileSync(path.resolve('./src/docs/api/entities/' + entity + '.yaml'), 'utf-8')) as any;
|
||||
const x = yaml.safeLoad(fs.readFileSync(path.resolve(__dirname + '/../../../src/docs/api/entities/' + entity + '.yaml'), 'utf-8')) as any;
|
||||
|
||||
await ctx.render('../../../../src/docs/api/entities/view', Object.assign(await genVars(lang), {
|
||||
name: x.name,
|
||||
|
|
Loading…
Reference in a new issue