Skip to content

Commit eac7dbe

Browse files
committed
remove unused api
1 parent 6ec3b81 commit eac7dbe

File tree

1 file changed

+0
-9
lines changed
  • samples/node/web/rest/rest-koa/controllers

1 file changed

+0
-9
lines changed

samples/node/web/rest/rest-koa/controllers/api.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,5 @@ module.exports = {
2222
} else {
2323
throw new APIError('product:not_found', 'product not found by id.');
2424
}
25-
},
26-
27-
'GET /api/products/:id': async (ctx, next) => {
28-
let p = findProductById(ctx.params.id);
29-
if (p) {
30-
ctx.rest(p);
31-
} else {
32-
throw new APIError('product:not_found', 'product not found by id.');
33-
}
3425
}
3526
};

0 commit comments

Comments
 (0)