- Created `qa-test-output-after-fix.txt` and `qa-test-output.txt` to log results of certificate page authentication tests. - Added `build.sh` for deterministic backend builds in CI, utilizing `go list` for efficiency. - Introduced `codeql_scan.sh` for CodeQL database creation and analysis for Go and JavaScript/TypeScript. - Implemented `dockerfile_check.sh` to validate Dockerfiles for base image and package manager mismatches. - Added `sourcery_precommit_wrapper.sh` to facilitate Sourcery CLI usage in pre-commit hooks.
21 lines
449 B
TypeScript
21 lines
449 B
TypeScript
import client from './client';
|
|
|
|
export interface SetupStatus {
|
|
setupRequired: boolean;
|
|
}
|
|
|
|
export interface SetupRequest {
|
|
name: string;
|
|
email: string;
|
|
password: string;
|
|
}
|
|
|
|
export const getSetupStatus = async (): Promise<SetupStatus> => {
|
|
const response = await client.get<SetupStatus>('/setup');
|
|
return response.data;
|
|
};
|
|
|
|
export const performSetup = async (data: SetupRequest): Promise<void> => {
|
|
await client.post('/setup', data);
|
|
};
|