2
2
mirror of https://github.com/Thream/website.git synced 2024-07-21 09:28:32 +02:00
website/cypress/fixtures/users/current/get.ts

19 lines
408 B
TypeScript

import type { Handler } from "../../handler"
import { userExample, userSettingsExample } from "../user"
export const getUsersCurrentHandler: Handler = {
method: "GET",
url: "/users/current",
response: {
statusCode: 200,
body: {
user: {
...userExample,
settings: userSettingsExample,
currentStrategy: "local",
strategies: ["local"],
},
},
},
}