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