import { Controller, Get } from '@nestjs/common'; import { HomeContentView } from '@dorfteich/shared'; import { Public } from '../auth/auth.guard'; import { HomeService } from './home.service'; /** * Public landing-page content (the editable home page). `@Public()` — the * home page is reachable without a session. The Site Admin edits the * underlying `home.content` setting through Admin → Settings (PATCH * /admin/settings), same as the legal texts. */ @Controller('home') export class HomeController { constructor(private readonly home: HomeService) {} @Get('content') @Public() content(): Promise { return this.home.content(); } }