Skip to content

Commit

Permalink
feature(admin can create staffs):
Browse files Browse the repository at this point in the history
admin can create staffs
[Finishes #165331522]
  • Loading branch information
Cavdy committed Apr 14, 2019
1 parent 3aef0d8 commit 9c014ad
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 22 deletions.
3 changes: 2 additions & 1 deletion api/v1/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import express from 'express';
import bodyParser from 'body-parser';
import debug from 'debug';
import RegisterRoute from './routes/register';
import CreateStaffRoute from './routes/createStaffs';
import LoginRoute from './routes/login';
Expand Down Expand Up @@ -41,7 +42,7 @@ app.use('/api/v1/transactions', checkToken, TransactionRoute);

// listening to our port
app.listen(PORT, () => {
console.log(`server running on port: ${PORT}`);
debug('server')(`server running on port: ${PORT}`);
});

export default app;
130 changes: 109 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"body-parser": "^1.18.3",
"chai": "^4.2.0",
"chai-http": "^4.2.1",
"debug": "^4.1.1",
"dotenv": "^6.2.0",
"express": "^4.16.4",
"express-handlebars": "^3.0.2",
Expand Down

0 comments on commit 9c014ad

Please sign in to comment.