Commit 8b719c5d8f2929fe42f71a5328515abf415f6ce2
1 parent
33bb4ab683
Exists in
master
ESLINTED: api-server/router-remote-products.js
Showing 1 changed file with 3 additions and 4 deletions Side-by-side Diff
api-server/router-remote-products.js
... | ... | @@ -5,13 +5,12 @@ const sortObj = require('sort-object'); |
5 | 5 | const naturalCompare = require('string-natural-compare'); |
6 | 6 | |
7 | 7 | const config = require('../config'); |
8 | -const logger = require('../logger'); | |
9 | 8 | const matrix = require('../matrix'); |
10 | 9 | |
11 | 10 | const router = express.Router(); |
12 | 11 | module.exports = router; |
13 | 12 | |
14 | -function pageIndex(req, res, next) { | |
13 | +function pageIndex(req, res) { | |
15 | 14 | res.json({ |
16 | 15 | method: '/products', |
17 | 16 | error: null, |
... | ... | @@ -19,7 +18,7 @@ function pageIndex(req, res, next) { |
19 | 18 | }); |
20 | 19 | } |
21 | 20 | |
22 | -function pageSet(req, res, next) { | |
21 | +function pageSet(req, res) { | |
23 | 22 | function responseWithUsageHelp() { |
24 | 23 | res.json({ |
25 | 24 | method: '/remote-products/set', |
... | ... | @@ -57,7 +56,7 @@ function pageSet(req, res, next) { |
57 | 56 | }) |
58 | 57 | } |
59 | 58 | |
60 | -function pageDel(req, res, next) { | |
59 | +function pageDel(req, res) { | |
61 | 60 | function responseWithUsageHelp() { |
62 | 61 | res.json({ |
63 | 62 | method: '/remote-products/del', |