mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-06 02:26:04 +02:00
✌️
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import * as fs from 'fs';
|
||||
import * as glob from 'glob';
|
||||
import * as yaml from 'js-yaml';
|
||||
import langs from '../../../locales';
|
||||
import config from '../../conf';
|
||||
|
||||
export default function() {
|
||||
const vars = {};
|
||||
export default function(): { [key: string]: any } {
|
||||
const vars = {} as { [key: string]: any };
|
||||
|
||||
const endpoints = glob.sync('./src/web/docs/api/endpoints/**/*.yaml');
|
||||
vars['endpoints'] = endpoints.map(ep => {
|
||||
@@ -35,5 +36,7 @@ export default function() {
|
||||
|
||||
vars['config'] = config;
|
||||
|
||||
vars['i18n'] = langs;
|
||||
|
||||
return vars;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user