[INIT] Initial Project Structure
This commit is contained in:
commit
0fc5f05b6a
105 changed files with 10448 additions and 0 deletions
22
src/util/api/GeneratedRequests.ts
Normal file
22
src/util/api/GeneratedRequests.ts
Normal file
|
@ -0,0 +1,22 @@
|
|||
/* ----- Vix Auto Generated Routes ----- */
|
||||
import { CAuthContract, CProjectContract } from "@vix/ContractTypes";
|
||||
import { apiRequest } from "@dunemask/vix/bridge";
|
||||
import { authenticatedApiRequest } from "./requests";
|
||||
|
||||
export const getProjectAuthVerify = (project: string) =>
|
||||
authenticatedApiRequest({ subpath: `/${project}/auth/verify`, method: "GET", jsonify: true });
|
||||
|
||||
export const postProjectAuthLogin = (project: string, login: CAuthContract["Login"]) =>
|
||||
apiRequest<CAuthContract["LoginCredentials"]>({
|
||||
subpath: `/${project}/auth/login`,
|
||||
method: "POST",
|
||||
json: login,
|
||||
jsonify: true,
|
||||
});
|
||||
|
||||
export const getProjectAuthCredentials = (project: string) =>
|
||||
authenticatedApiRequest<CAuthContract["Credentials"]>({
|
||||
subpath: `/${project}/auth/credentials`,
|
||||
method: "GET",
|
||||
jsonify: true,
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue