Skip to content

Commit

Permalink
Merge 5ece71e into 4f3018d
Browse files Browse the repository at this point in the history
  • Loading branch information
jsamchineme committed Feb 8, 2019
2 parents 4f3018d + 5ece71e commit d68a782
Show file tree
Hide file tree
Showing 19 changed files with 1,085 additions and 845 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"plugins": [
"@babel/plugin-proposal-object-rest-spread"
]
}
}
2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"prefer-arrow-callback": "off",
"comma-dangle": 0,
"curly": ["error", "multi-line"],
"class-methods-use-this": 0,
"import/prefer-default-export": 0,
"import/no-unresolved": [2, { "commonjs": true }],
"func-names": 0,
"import/named": 0,
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[![Build Status](https://travis-ci.org/andela/denethor-ah-backend.svg?branch=master)](https://travis-ci.org/andela/denethor-ah-backend) [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com) [![Coverage Status](https://coveralls.io/repos/github/andela/denethor-ah-backend/badge.svg?branch=master)](https://coveralls.io/github/andela/denethor-ah-backend?branch=master)

[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)

## Vision

Create a community of like minded authors to foster inspiration and innovation
Expand Down
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ app.get('/', (req, res) => res.status(200).send({
message: 'Welcome to Author Haven!',
}));

app.get('*', (req, res) => res.status(200).send({
status: 'fail',
message: 'Route not found',
}));

app.listen(port, function serverListner() {
logger.debug(`Server running on port ${chalk.blue(port)}`);
});
Expand Down
Loading

0 comments on commit d68a782

Please sign in to comment.