7e4da3e5a4
refactored signup flow for entire registration process. Utilized seed data option for optional seeding of Foods, Units, and Labels. Localized registration page.
12 lines
295 B
TypeScript
12 lines
295 B
TypeScript
import { ValidatorsApi } from "./public/validators";
|
|
import { ApiRequestInstance } from "~/types/api";
|
|
|
|
export class PublicApi {
|
|
public validators: ValidatorsApi;
|
|
|
|
constructor(requests: ApiRequestInstance) {
|
|
this.validators = new ValidatorsApi(requests);
|
|
|
|
Object.freeze(this);
|
|
}
|
|
}
|