-
Notifications
You must be signed in to change notification settings - Fork 4
/
app.ts
25 lines (17 loc) · 928 Bytes
/
app.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import express, {Application, Request, Response} from 'express';
// @ts-ignore
import {ping, sample} from "./models/endpoints";
// @ts-ignore
import {predictions} from "./data_sources/kinase-cancer-predictions/index"
import {interactorScores} from "./data_sources/pairwise-relationship-data";
import {coexpressionData} from "./data_sources/coexpression-data";
const app: Application = express()
const port: number = 3001
app.get('/ping*', (req: Request, res: Response) => ping(req, res));
app.get("/sample?*", (req: Request, res: Response) => sample(req, res));
app.get("/predictions?*", (req: Request, res: Response) => predictions(req, res));
app.get("/interactorScores?*", (req: Request, res: Response) => interactorScores(req, res));
app.get("/coexpressionData?*", (req: Request, res: Response) => coexpressionData(req, res));
app.listen(port, function () {
console.log(`App is listening on port ${port} !`)
});