mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(api): 🚚 Change ApiRouteMetadata structure to be more consistent
This commit is contained in:
parent
00fd751c2a
commit
924ff9b2d4
3 changed files with 8 additions and 3 deletions
|
|
@ -13,7 +13,9 @@ export interface ApiRouteMetadata {
|
|||
route: string;
|
||||
auth: {
|
||||
required: boolean;
|
||||
requiredOnMethods?: HttpVerb[];
|
||||
methodOverrides?: {
|
||||
[Key in HttpVerb]?: boolean;
|
||||
};
|
||||
oauthPermissions?: string[];
|
||||
};
|
||||
permissions?: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue