Add GET /collections endpoint

This commit is contained in:
rijkvanzanten
2020-06-30 14:45:54 -04:00
parent a4e5e52085
commit c00645f259
10 changed files with 85 additions and 21 deletions

8
src/types/collection.ts Normal file
View File

@@ -0,0 +1,8 @@
export type Collection = {
collection: string;
note: string | null;
hidden: boolean;
single: boolean;
icon: string | null;
translation: Record<string, string>;
};

View File

@@ -11,6 +11,7 @@ declare global {
user?: string;
role?: string;
collection?: string;
sanitizedQuery?: Record<string, any>;
}
}
}