Closed kkak10 closed 6 years ago
Use an Express Router, same as in any Express app:
import { Router } from 'express';
export default config => {
let routes = Router();
routes.put('/', (req, res, next) => {
res.json({ hello: 'world' });
});
return routes;
}
I want add custom api without 'get', 'read', 'put', 'patch', 'update', 'del', 'delete'.