File

apps/recallassess/recallassess-api/src/api/client/account/account.controller.ts

Prefix

api/client/account

Index

Methods

Methods

Async createAccountFromSignup
createAccountFromSignup(dto: CreateAccountFromSignupDto)
Decorators :
@Public()
@Post('create-from-signup')

Create company account and admin user after signup/payment Called by frontend after successful payment Public endpoint (no auth required)

Parameters :
Name Type Optional
dto CreateAccountFromSignupDto No
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);
  }
}

results matching ""

    No results matching ""