blob: 483da83da91b3fc69456c14bfbfb06f427ad7b0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { http, HttpResponse } from 'msw';
import { nanoid } from '@reduxjs/toolkit';
const token = nanoid();
export const handlers = [
http.post('/guest-login', () => {
return HttpResponse.json(
{
user: {
firstName: 'Michael',
lastName: 'Hunteman'
},
token
}
)
})
];
|