mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
048ac95e8b
* fix: language switch position issue * align with v5 endpoints for web * fix: endpoints * add changeset * fix test * fix test
9 lines
247 B
TypeScript
9 lines
247 B
TypeScript
import { rest } from 'msw';
|
|
|
|
const packagesPayload = require('./api/packages.json');
|
|
|
|
export const handlers = [
|
|
rest.get('http://localhost:9000/-/verdaccio/data/packages', (req, res, ctx) => {
|
|
return res(ctx.json(packagesPayload));
|
|
}),
|
|
];
|