Skip to content

Commit a165b29

Browse files
committed
added binary route
1 parent 93683b4 commit a165b29

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

api/controllers/binary.js

Whitespace-only changes.

api/routes/binary.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const express = require("express");
2+
const router = express.Router();
3+
4+
const BinaryController = require('../controllers/binary');
5+
const checkAuth = require('../middleware/check-auth');
6+
7+
// Handle incoming requests
8+
9+
module.exports = router;

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const bodyParser = require("body-parser");
55
const mongoose = require("mongoose");
66

77
const contractRoutes = require("./api/routes/contracts");
8-
const walletRoutes = require("./api/routes/wallets");
8+
const binaryRoutes = require("./api/routes/binary");
99
const userRoutes = require("./api/routes/user");
1010

1111
mongoose.connect(
@@ -34,7 +34,7 @@ app.use((req, res, next) => {
3434

3535
// Routes which should handle requests
3636
app.use("/contracts", contractRoutes);
37-
app.use("/wallets", walletRoutes);
37+
app.use("/binary", binaryRoutes);
3838
app.use("/user", userRoutes);
3939

4040
app.use((req, res, next) => {

0 commit comments

Comments
 (0)