mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-10 23:15:34 -04:00
chore: Nuxt 4 upgrade (#7426)
This commit is contained in:
14
frontend/app/lib/api/user/user-registration.ts
Normal file
14
frontend/app/lib/api/user/user-registration.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { BaseAPI } from "../base/base-clients";
|
||||
import type { CreateUserRegistration } from "~/lib/api/types/user";
|
||||
|
||||
const prefix = "/api";
|
||||
|
||||
const routes = {
|
||||
register: `${prefix}/users/register`,
|
||||
};
|
||||
|
||||
export class RegisterAPI extends BaseAPI {
|
||||
async register(payload: CreateUserRegistration) {
|
||||
return await this.requests.post<any>(routes.register, payload);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user