2021-08-19 12:33:41 +03:00
|
|
|
import define from '../define.js';
|
|
|
|
import endpoints from '../endpoints.js';
|
2019-04-18 15:29:19 +03:00
|
|
|
|
|
|
|
export const meta = {
|
2020-02-15 14:33:32 +02:00
|
|
|
requireCredential: false as const,
|
2019-04-18 15:29:19 +03:00
|
|
|
|
|
|
|
tags: ['meta'],
|
|
|
|
|
|
|
|
params: {
|
|
|
|
},
|
2021-03-06 15:34:11 +02:00
|
|
|
|
|
|
|
res: {
|
|
|
|
type: 'array' as const,
|
|
|
|
optional: false as const, nullable: false as const,
|
|
|
|
items: {
|
|
|
|
type: 'string' as const,
|
|
|
|
optional: false as const, nullable: false as const
|
|
|
|
},
|
|
|
|
example: [
|
|
|
|
'admin/abuse-user-reports',
|
|
|
|
'admin/accounts/create',
|
|
|
|
'admin/announcements/create',
|
|
|
|
'...'
|
|
|
|
]
|
|
|
|
}
|
2019-04-18 15:29:19 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
export default define(meta, async () => {
|
|
|
|
return endpoints.map(x => x.name);
|
|
|
|
});
|