Initial commit

This commit is contained in:
2025-08-04 16:33:07 +03:30
commit f798e8e35c
9595 changed files with 1208683 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { HttpResponse, http } from 'msw'
import { db } from '@db/pages/profile/db'
// Handler for pages/profile
export const handlerPagesProfile = [
// GET /pages/profile
http.get(('/api/pages/profile'), ({ request }) => {
const url = new URL(request.url)
const tab = url.searchParams.get('tab') || ''
return HttpResponse.json(db.data[tab], { status: 200 })
}),
// GET /pages/profile/header
http.get(('/api/pages/profile/header'), () => {
return HttpResponse.json(db.data.profileHeader, { status: 200 })
}),
]