forked from feast-dev/feast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhandlers.ts
More file actions
29 lines (26 loc) · 777 Bytes
/
Copy pathhandlers.ts
File metadata and controls
29 lines (26 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { rest } from "msw";
import registry from "../../public/registry.json";
const projectsListWithDefaultProject = rest.get(
"/projects-list.json",
(req, res, ctx) => {
return res(
ctx.status(200),
ctx.json({
default: "credit_score_project",
projects: [
{
name: "Credit Score Project",
description:
"Project for credit scoring team and associated models.",
id: "credit_score_project",
registryPath: "/registry.json",
},
],
})
);
}
);
const creditHistoryRegistry = rest.get("/registry.json", (req, res, ctx) => {
return res(ctx.status(200), ctx.json(registry));
});
export { projectsListWithDefaultProject, creditHistoryRegistry };