Skip to content

Commit

Permalink
--
Browse files Browse the repository at this point in the history
  • Loading branch information
jipsonminibhavan committed Jan 25, 2024
1 parent f313df3 commit bdf4297
Show file tree
Hide file tree
Showing 3 changed files with 341 additions and 73 deletions.
5 changes: 3 additions & 2 deletions frontend/mocks/handlers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { rest, RequestHandler } from 'msw'
/*import { rest, RequestHandler } from 'msw'
import type { Context } from 'vm'
export const handlers: RequestHandler[] = [
rest.post('http://localhost:8080/login', async (req, res, ctx) => {
rest.post('http://localhost:8080/login', async (req: Request, res:Response, ctx:Context) => {
const { username, password } = await req.json()
if (username === '[email protected]' && password === 'password1234') {
return res(ctx.json({ token: 'mocked-tocken' }))
Expand Down
Loading

0 comments on commit bdf4297

Please sign in to comment.