mirror of
https://github.com/hay-kot/mealie.git
synced 2025-07-15 01:23:57 -07:00
* 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.
16 lines
431 B
TypeScript
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);
|
|
}
|
|
}
|