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 15, 2024
1 parent 6fb76c7 commit 07b3ee5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/rest/endpoints.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/* of course, stick to this format of "methodPath1Path2" */
/* the arguments passed to the path() function should simply become the parameters of the request */

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

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

0 comments on commit 07b3ee5

Please sign in to comment.