Refactor: Rename NanoKVM to BatchuKVM and update server URL
This commit is contained in:
14
web/src/mocks/browser.ts
Normal file
14
web/src/mocks/browser.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { setupWorker } from 'msw/browser'
|
||||
import { http, HttpResponse } from 'msw'
|
||||
|
||||
export const handlers = [
|
||||
http.post('/api/auth/login', () => {
|
||||
return HttpResponse.json({
|
||||
code: 0,
|
||||
data: {
|
||||
token: 'mocked_token',
|
||||
},
|
||||
})
|
||||
}),
|
||||
]
|
||||
export const worker = setupWorker(...handlers)
|
||||
Reference in New Issue
Block a user