-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
290f5e8
commit 19ea72b
Showing
12 changed files
with
2,225 additions
and
2,416 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
import { rest } from 'msw'; | ||
import { http, HttpResponse } from 'msw'; | ||
import { user } from './users'; | ||
import { enrollments } from './enrollments'; | ||
|
||
const baseUrl = 'https://api.ufabcnext.com/v1'; | ||
|
||
export const handlers = [ | ||
rest.get(`${baseUrl}/users/info`, (req, res, ctx) => | ||
res(ctx.status(200), ctx.json(user)), | ||
), | ||
rest.get(`${baseUrl}/enrollments`, (req, res, ctx) => | ||
res(ctx.status(200), ctx.json(enrollments)), | ||
), | ||
http.get(`${baseUrl}/users/info`, () => HttpResponse.json(user)), | ||
http.get(`${baseUrl}/enrollments`, () => HttpResponse.json(enrollments)), | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,12 +8,12 @@ | |
"test": "turbo run test" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.46.0", | ||
"eslint": "^8.52.0", | ||
"eslint-config-custom": "*", | ||
"prettier": "^3.0.0", | ||
"turbo": "1.10.12", | ||
"@commitlint/cli": "17.6.7", | ||
"@commitlint/config-conventional": "17.6.7" | ||
"prettier": "^3.0.3", | ||
"turbo": "1.10.16", | ||
"@commitlint/cli": "18.2.0", | ||
"@commitlint/config-conventional": "18.1.0" | ||
}, | ||
"name": "ufabc-next-web", | ||
"packageManager": "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.