Skip to content

Commit 5665cc0

Browse files
committed
fixed the order of req res next
1 parent f70f1f1 commit 5665cc0

3 files changed

Lines changed: 7 additions & 12 deletions

File tree

controllers/kataCtrl.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ const app = require('../server');
22
const db = app.get('db');
33

44
module.exports = {
5-
getKata: (res, req, next) => {
5+
getKata: (req, res, next) => {
66

77
},
88

9-
postSolution: (res, req, next) => {
9+
postSolution: (req, res, next) => {
1010

1111
},
1212

13-
getRandomKata: (res, req, next) => {
13+
getRandomKata: (req, res, next) => {
1414

1515
},
1616

17-
getCompletedKatas: (res, req, next) => {
17+
getCompletedKatas: (req, res, next) => {
1818

1919
},
2020

21-
getKataSolutions: (res, req, next) => {
21+
getKataSolutions: (req, res, next) => {
2222

2323
},
2424

controllers/testCtrl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ module.exports = {
4141

4242
},
4343

44-
testKata: (res, req, next) => {
44+
testKata: (req, res, next) => {
4545

4646
},
4747

48-
testExamplesKata: (res, req, next) => {
48+
testExamplesKata: (req, res, next) => {
4949

5050
},
5151

server.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ app.post('/solution/:kataId', kataCtrl.postSolution);
7676

7777

7878

79-
80-
81-
82-
83-
8479
app.listen(config.port, function() {
8580
console.log(`listening on port ${this.address().port}`);
8681

0 commit comments

Comments
 (0)