Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b6b297

Browse files
committed
Fix handler
1 parent 424a645 commit 1b6b297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/testHelpers/handlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const handlers = [
5555
rest.get("/api/v2/users/roles", async (req, res, ctx) => {
5656
return res(ctx.status(200), ctx.json(M.MockSiteRoles))
5757
}),
58-
rest.post("/api/v2/users/:userId/permissions/check", async (req, res, ctx) => {
58+
rest.post("/api/v2/users/:userId/authorization", async (req, res, ctx) => {
5959
const permissions = Object.keys(permissionsToCheck)
6060
const response = permissions.reduce((obj, permission) => {
6161
return {

0 commit comments

Comments
 (0)