mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-03 18:53:17 -05:00 
			
		
		
		
	refactored signup flow for entire registration process. Utilized seed data option for optional seeding of Foods, Units, and Labels. Localized registration page.
		
			
				
	
	
		
			17 lines
		
	
	
		
			430 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			430 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 avaiable .zip files for import into Mealie.
 | 
						|
   */
 | 
						|
  async register(payload: CreateUserRegistration) {
 | 
						|
    return await this.requests.post<any>(routes.register, payload);
 | 
						|
  }
 | 
						|
}
 |