apps/recallassess/recallassess-api/src/api/client/account/account.controller.ts
api/client/account
Methods |
|
| Async createAccountFromSignup | ||||||
createAccountFromSignup(dto: CreateAccountFromSignupDto)
|
||||||
Decorators :
@Public()
|
||||||
|
Create company account and admin user after signup/payment Called by frontend after successful payment Public endpoint (no auth required)
Parameters :
Returns :
Promise<AccountCreationResponseDto>
|
import { Public } from "@bish-nest/core/auth";
import { Body, Controller, Post } from "@nestjs/common";
import { CLAccountService } from "./account.service";
import { AccountCreationResponseDto, CreateAccountFromSignupDto } from "./dto/account.dto";
@Controller("api/client/account")
export class CLAccountController {
constructor(private accountService: CLAccountService) {}
/**
* Create company account and admin user after signup/payment
* Called by frontend after successful payment
* Public endpoint (no auth required)
*/
@Public()
@Post("create-from-signup")
async createAccountFromSignup(@Body() dto: CreateAccountFromSignupDto): Promise<AccountCreationResponseDto> {
return this.accountService.createAccountFromSignup(dto);
}
}