forked from Qortal/q-blog
12 lines
443 B
TypeScript
12 lines
443 B
TypeScript
import { http, HttpResponse } from 'msw';
|
|
|
|
export const handlers = [
|
|
http.get('/api/health', () => {
|
|
return HttpResponse.json({ ok: true });
|
|
}),
|
|
// Default fallbacks for QDN endpoints to keep tests isolated
|
|
http.get('/arbitrary/resources/search', () => HttpResponse.json([])),
|
|
http.get('/arbitrary/resources', () => HttpResponse.json([])),
|
|
http.get('/arbitrary/BLOG_COMMENT/:name/:identifier', () => HttpResponse.json({})),
|
|
];
|