Skip to content

Commit

Permalink
Remove extraneous router (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qrtn authored Jan 15, 2021
1 parent f3fed71 commit c74feb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions api/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const path = require('path');
const session = require('express-session');
const bodyParser = require('body-parser');
const passport = require('passport');
const routes = require('./routes');
const apiRoutes = require('./api');

const app = express();
const { errorHandler } = require('./middleware');
Expand Down Expand Up @@ -61,7 +61,7 @@ require('./utils/passport-setup');
app.use(passport.initialize());
app.use(passport.session());

app.use('/', routes);
app.use('/api', apiRoutes);

app.get('/', (req, res) => res.json('API working!'));

Expand Down
7 changes: 0 additions & 7 deletions api/src/routes/index.js

This file was deleted.

1 comment on commit c74feb5

@vercel
Copy link

@vercel vercel bot commented on c74feb5 Jan 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.