mirror of
https://github.com/strapi/strapi.git
synced 2025-07-14 12:32:35 +00:00
33 lines
705 B
TypeScript
33 lines
705 B
TypeScript
![]() |
import type { errors } from '@strapi/utils';
|
||
|
import { Common } from '@strapi/types';
|
||
|
|
||
|
/**
|
||
|
* GET /content-api/permissions - Get the permissions of all content types
|
||
|
*/
|
||
|
export declare namespace GetPermissions {
|
||
|
export interface Request {
|
||
|
query: {};
|
||
|
body: {};
|
||
|
}
|
||
|
|
||
|
export interface Response {
|
||
|
data: Record<string, { controllers: Record<string, string[]> }>;
|
||
|
error?: errors.ApplicationError;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* GET /content-api/routes - Get the routes of all content types
|
||
|
*/
|
||
|
export declare namespace GetRoutes {
|
||
|
export interface Request {
|
||
|
query: {};
|
||
|
body: {};
|
||
|
}
|
||
|
|
||
|
export interface Response {
|
||
|
data: Record<string, Common.Route[]>;
|
||
|
error?: errors.ApplicationError;
|
||
|
}
|
||
|
}
|