-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.js
30 lines (25 loc) · 904 Bytes
/
index.js
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
26
27
28
import express from "express";
import orders from "./routes/orders.js";
import getOrderBook from "./routes/getOrderBook.js";
import candelStickData from "./routes/candelStickData.js";
import registration from "./routes/registration.js";
import generateKeys from "./routes/generateKeys.js";
import deleteOrders from "./routes/deleteOrders.js";
import getOpenTrades from "./routes/getOpenTrades.js";
import getTrades from "./routes/getTrades.js";
import getServerTime from "./routes/getServerTime.js";
//import generarteCryptoAddress from "./routes/generateCryptoAddress.js";
const app = express();
const port = 3000;
app.use(orders);
app.use(getOrderBook);
app.use(candelStickData);
app.use(registration);
app.use(generateKeys);
app.use(deleteOrders);
app.use(getOpenTrades);
app.use(getTrades);
app.use(getServerTime);
app.listen(port,()=>{
console.log(`Live on http://localhost:${port}`);
});