mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
(test) handle plan update request
This commit is contained in:
parent
65e2f037ab
commit
c13548ccb4
@ -36,6 +36,9 @@ export const server = setupServer(
|
||||
rest.post('/api/plans', (req, res, ctx) => {
|
||||
return res(ctx.json(req.body));
|
||||
}),
|
||||
rest.put('/api/plans/:id', (req, res, ctx) => {
|
||||
return res(ctx.json(req.body));
|
||||
}),
|
||||
rest.post('/api/users', (req, res, ctx) => {
|
||||
/* eslint-disable camelcase */
|
||||
const { user: { first_name, last_name, email } } = req.body;
|
||||
|
Loading…
x
Reference in New Issue
Block a user