Skip to content

The only tool you need to know what is happening and how to fix it.

363 B
Raw Blame
import { Controller, Get, Headers } from '@nestjs/common';
import { DashboardService } from './dashboard.service';

@Controller('api/dashboard')
export class DashboardController {
  constructor(private readonly dashboard: DashboardService) {}

  @Get()
  getDashboard(@Headers('x-account-id') accountId: string) {
    return this.dashboard.load(accountId);
  }
}