From f1132f89a124afb3b5baed7540829bb397245b96 Mon Sep 17 00:00:00 2001 From: KOSASIH Date: Sat, 13 Jul 2024 17:28:50 +0700 Subject: [PATCH] Create index.js --- index.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..f10683b --- /dev/null +++ b/index.js @@ -0,0 +1,23 @@ +import express from 'express'; +import bodyParser from 'body-parser'; +import cors from 'cors'; +import helmet from 'helmet'; +import morgan from 'organ'; +import { geneEditingRouter } from './gene-editing/router'; +import { geneticCircuitDesignRouter } from './genetic-circuit-design/router'; +import { syntheticBiologySimulationRouter } from './synthetic-biology-simulation/router'; + +const app = express(); + +app.use(bodyParser.json()); +app.use(cors()); +app.use(helmet()); +app.use(morgan('dev')); + +app.use('/gene-editing', geneEditingRouter); +app.use('/genetic-circuit-design', geneticCircuitDesignRouter); +app.use('/synthetic-biology-simulation', syntheticBiologySimulationRouter); + +app.listen(3000, () => { + console.log('Server listening on port 3000'); +});