first commit

This commit is contained in:
Inshal
2024-05-29 22:34:28 +05:00
commit e63fc41a20
1470 changed files with 174828 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { rest } from 'msw'
import { db } from '@db/pages/help-center/db'
export const handlerPagesHelpCenter = [
rest.get(('/api/pages/help-center'), (req, res, ctx) => {
return res(ctx.status(200), ctx.json({ allArticles: db.allArticles, popularArticles: db.popularArticles, keepLearning: db.keepLearning }))
}),
rest.get(('/api/pages/help-center/article'), (req, res, ctx) => {
return res(ctx.status(200), ctx.json(db.articleData))
}),
]