Skip to content

Commit

Permalink
Create index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 13, 2024
1 parent fbdf78e commit f1132f8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -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');
});

0 comments on commit f1132f8

Please sign in to comment.