Resolve #4732
This commit is contained in:
parent
4beb3e5755
commit
8b92feac71
3 changed files with 36 additions and 3 deletions
15
src/server/api/endpoints/endpoints.ts
Normal file
15
src/server/api/endpoints/endpoints.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import define from '../define';
|
||||
import endpoints from '../endpoints';
|
||||
|
||||
export const meta = {
|
||||
requireCredential: false,
|
||||
|
||||
tags: ['meta'],
|
||||
|
||||
params: {
|
||||
},
|
||||
};
|
||||
|
||||
export default define(meta, async () => {
|
||||
return endpoints.map(x => x.name);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue