Skip to content

Commit

Permalink
Update endpoints.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Sep 14, 2024
1 parent e1581bd commit b72473a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rest/endpoints.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
/* of course, stick to this format of "methodPath1Path2" */
/* the arguments passed to the path() function should simply become the parameters of the request */

import { HttpResponse } from "msw";
const HttpResponse =
process.env.NODE_ENV !== "development" &&
process.env.NODE_ENV !== "production"
? (await import("msw")).HttpResponse
: {};
import { TEST_DATA } from "../testData.js";

/* for example, (guild_id) => { return `/guilds/${guild_id}` } */
Expand Down

0 comments on commit b72473a

Please sign in to comment.