import { Controller, Get } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { SettingsService } from './settings.service';

@ApiTags('settings')
@Controller('app-settings')
export class SettingsController {
  constructor(private settings: SettingsService) {}

  // Public — no auth required. Mobile app fetches this before/after login.
  @Get()
  get() {
    return this.settings.getSettings();
  }
}
