Skip to content

Commit

Permalink
Feat: Setup test env
Browse files Browse the repository at this point in the history
see #30
  • Loading branch information
lupyana committed May 24, 2019
1 parent bb9cd35 commit 972234f
Show file tree
Hide file tree
Showing 5 changed files with 1,654 additions and 6,045 deletions.
8 changes: 5 additions & 3 deletions backend/index.js → backend/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ const app = express();
const port = 3000;
const router = express.Router(); // get an instance of the express Router
router.get('/', (req, res) => {
res.json({ message: 'hooray! welcome to our api!' });
res.status(200).json({ message: 'Hello world' });
});

app.use('/api', router);
app.listen(port, () => console.log(`Example app listening on port ${port}!`));
app.use('/', router);
// app.listen(port, () => console.log(`Example app listening on port ${port}!`));

module.exports = app;
Loading

0 comments on commit 972234f

Please sign in to comment.