From febf394a81e8f81a7b4f3679af4268e436c5ec7d Mon Sep 17 00:00:00 2001 From: Zac Gaetano Date: Tue, 7 Apr 2026 21:58:29 -0400 Subject: [PATCH] add services/capture/src/index.js --- services/capture/src/index.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 services/capture/src/index.js diff --git a/services/capture/src/index.js b/services/capture/src/index.js new file mode 100644 index 0000000..b031d18 --- /dev/null +++ b/services/capture/src/index.js @@ -0,0 +1,26 @@ +import express from 'express'; +import cors from 'cors'; +import dotenv from 'dotenv'; +import captureRoutes from './routes/capture.js'; + +dotenv.config(); + +const app = express(); +const PORT = process.env.PORT || 3001; + +// Middleware +app.use(cors()); +app.use(express.json()); + +// Health check +app.get('/health', (req, res) => { + res.json({ status: 'ok' }); +}); + +// Routes +app.use('/capture', captureRoutes); + +// Start server +app.listen(PORT, () => { + console.log(`Wild Dragon Capture Service listening on port ${PORT}`); +});