mealie/frontend/api/class-interfaces/user-registration.ts
Ben Boeckel 2e6b877ba9
docs: fix typos (#1665)
* docs: fix typos

* typos: fix typos found by `codespell` across the codebase

* docs: fix `macOS` spelling

* docs: fix `authentification` terminology

"Authentification" is not a thing.

* docs: fix `localhost` typo in example link

* typos: fix in-code typos

These are potentially higher risk, but no other mentions of these typos
show up in the codebase.
2022-09-25 15:17:27 -08:00

16 lines
431 B
TypeScript

import { BaseAPI } from "../_base";
import { CreateUserRegistration } from "~/types/api-types/user";
const prefix = "/api";
const routes = {
register: `${prefix}/users/register`,
};
export class RegisterAPI extends BaseAPI {
/** Returns a list of available .zip files for import into Mealie.
*/
async register(payload: CreateUserRegistration) {
return await this.requests.post<any>(routes.register, payload);
}
}