mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-19 13:21:46 +00:00
17 lines
422 B
TypeScript
17 lines
422 B
TypeScript
import { http, HttpResponse } from 'msw';
|
|
import { buildSettings } from '../../factories';
|
|
|
|
export const settingsHandlers = [
|
|
http.get('/api/settings', () => {
|
|
return HttpResponse.json({ settings: buildSettings() });
|
|
}),
|
|
|
|
http.put('/api/settings', () => {
|
|
return HttpResponse.json({ success: true });
|
|
}),
|
|
|
|
http.post('/api/settings/bulk', () => {
|
|
return HttpResponse.json({ success: true });
|
|
}),
|
|
];
|