Skip to content

Commit

Permalink
feat: new collection route in api
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-hh-aa committed Dec 11, 2024
1 parent fd05980 commit 9699618
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api.planx.uk/modules/analytics/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import {
logUserExitController,
logUserResumeController,
} from "./analyticsLog/controller.js";
import { MetabaseCollectionsController } from "./metabase/collection/controller.js";
import { createCollectionIfDoesNotExistSchema } from "./metabase/collection/types.js";

const router = Router();

Expand All @@ -18,5 +20,10 @@ router.post(
validate(logAnalyticsSchema),
logUserResumeController,
);
router.post(
"/collection",
validate(createCollectionIfDoesNotExistSchema),
MetabaseCollectionsController,
);

export default router;

0 comments on commit 9699618

Please sign in to comment.