feat: change the controllers tags

This commit is contained in:
Ahmed Bouhuolia
2025-06-13 01:57:53 +02:00
parent ff93168d72
commit bcae2dae03
63 changed files with 77 additions and 71 deletions

View File

@@ -1,22 +1,22 @@
import { Body, Controller, Get, Post, Put } from '@nestjs/common';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { Body, Controller, Get, Put } from '@nestjs/common';
import { SettingsApplicationService } from './SettingsApplication.service';
import { ISettingsDTO } from './Settings.types';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
@Controller('settings')
@ApiTags('settings')
@ApiTags('Settings')
export class SettingsController {
constructor(
private readonly settingsApplicationService: SettingsApplicationService,
) {}
@Put('')
@Put()
@ApiOperation({ summary: 'Save the given settings.' })
async saveSettings(@Body() settingsDTO: ISettingsDTO) {
return this.settingsApplicationService.saveSettings(settingsDTO);
}
@Get('')
@Get()
@ApiOperation({ summary: 'Retrieves the settings.' })
async getSettings() {
return this.settingsApplicationService.getSettings();