Skip to content

Commit

Permalink
feat: add import zip endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia committed Dec 16, 2021
1 parent d90ea22 commit d7cf8bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export const buildUploadFilesRoute = (parentId: UUID) => `${ITEMS_ROUTE}/upload$
{ id: parentId },
{ addQueryPrefix: true },
)}`;
export const buildImportZipRoute = (parentId: UUID) => `${ITEMS_ROUTE}/zip-import${qs.stringify({ parentId }, { addQueryPrefix: true })}`;
export const buildDownloadFilesRoute = (id: UUID) =>
`${ITEMS_ROUTE}/${id}/download`;
export const buildUploadAvatarRoute = (id: UUID) =>
Expand Down Expand Up @@ -260,4 +261,5 @@ export const API_ROUTES = {
buildUploadAvatarRoute,
buildDownloadAvatarRoute,
buildDownloadPublicAvatarRoute,
buildImportZipRoute
};

0 comments on commit d7cf8bf

Please sign in to comment.