2021-10-24 00:42:20 +00:00
|
|
|
import { BaseAPI } from "../_base";
|
2022-05-06 19:18:06 +00:00
|
|
|
import { CreateUserRegistration } from "~/types/api-types/user";
|
2021-09-06 06:05:29 +00:00
|
|
|
|
|
|
|
const prefix = "/api";
|
|
|
|
|
|
|
|
const routes = {
|
|
|
|
register: `${prefix}/users/register`,
|
|
|
|
};
|
|
|
|
|
|
|
|
export class RegisterAPI extends BaseAPI {
|
|
|
|
/** Returns a list of avaiable .zip files for import into Mealie.
|
|
|
|
*/
|
2022-05-06 19:18:06 +00:00
|
|
|
async register(payload: CreateUserRegistration) {
|
2021-09-06 06:05:29 +00:00
|
|
|
return await this.requests.post<any>(routes.register, payload);
|
|
|
|
}
|
|
|
|
}
|