From 030b2b5f5060073aea41f47173bcab100b8d6a37 Mon Sep 17 00:00:00 2001 From: raghav-rama Date: Thu, 28 Nov 2024 09:48:33 +0530 Subject: [PATCH] fix: deploy script and test route --- .github/workflows/deploy.yml | 2 +- src/routes/mintOptions.route.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f72c7a3..74a16e7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,7 +28,7 @@ jobs: run: | zip -r deploy.zip . \ -x "*.git*" \ - -x "src/*" \ + -x "dist/*" \ -x "node_modules/*" \ && cd node_modules \ && zip -r ../deploy.zip . \ diff --git a/src/routes/mintOptions.route.ts b/src/routes/mintOptions.route.ts index 17c4f42..7734b59 100644 --- a/src/routes/mintOptions.route.ts +++ b/src/routes/mintOptions.route.ts @@ -1,8 +1,12 @@ -import { startMintingOptions } from '../controllers/mintOptions.controller.js'; +import { + startMintingOptions, + getMintOptions, +} from '../controllers/mintOptions.controller.js'; import { Router } from 'express'; const router = Router(); +router.get('/', getMintOptions); router.post('/', startMintingOptions); export default router;