import { Controller, Get } from '@nestjs/common'; import { CurrentSession } from '../auth/session.decorator'; import type { AuthenticatedSession } from '../auth/tenant.guard'; import { NavigationService } from './navigation.service'; @Controller('navigation') export class NavigationController { constructor(private readonly navigationService: NavigationService) {} @Get() get(@CurrentSession() session: AuthenticatedSession) { return this.navigationService.getNavigation(session); } }