Multi-tenant financial management platform for homeowner associations featuring: - NestJS backend with 16 modules (auth, accounts, transactions, budgets, units, invoices, payments, vendors, reserves, investments, capital projects, reports) - React + Mantine frontend with dashboard, CRUD pages, and financial reports - Schema-per-tenant PostgreSQL isolation with JWT-based tenant resolution - Docker Compose infrastructure (nginx, backend, frontend, postgres, redis) - Comprehensive seed data for Sunrise Valley HOA demo - 39 API endpoints with Swagger documentation - Double-entry bookkeeping with journal entries - Budget vs actual reporting and Sankey cash flow visualization Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
806 B
TypeScript
25 lines
806 B
TypeScript
import { Controller, Get, Post, Put, Body, Param, UseGuards } from '@nestjs/common';
|
|
import { ApiTags, ApiBearerAuth } from '@nestjs/swagger';
|
|
import { JwtAuthGuard } from '../auth/guards/jwt-auth.guard';
|
|
import { CapitalProjectsService } from './capital-projects.service';
|
|
|
|
@ApiTags('capital-projects')
|
|
@Controller('capital-projects')
|
|
@ApiBearerAuth()
|
|
@UseGuards(JwtAuthGuard)
|
|
export class CapitalProjectsController {
|
|
constructor(private service: CapitalProjectsService) {}
|
|
|
|
@Get()
|
|
findAll() { return this.service.findAll(); }
|
|
|
|
@Get(':id')
|
|
findOne(@Param('id') id: string) { return this.service.findOne(id); }
|
|
|
|
@Post()
|
|
create(@Body() dto: any) { return this.service.create(dto); }
|
|
|
|
@Put(':id')
|
|
update(@Param('id') id: string, @Body() dto: any) { return this.service.update(id, dto); }
|
|
}
|