mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-03 18:53:17 -05:00 
			
		
		
		
	Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com> Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
		
			
				
	
	
		
			15 lines
		
	
	
		
			371 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			371 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
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);
 | 
						|
  }
 | 
						|
}
 |