1
0
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:
Sylvain 2023-01-26 10:04:47 +01:00
parent 65e2f037ab
commit c13548ccb4

View File

@ -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;