mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-14 03:40:31 +00:00
21 lines
593 B
TypeScript
21 lines
593 B
TypeScript
import { Body, Controller, Get, Post } from '@nestjs/common';
|
|
import { SettingsApplicationService } from './SettingsApplication.service';
|
|
import { ISettingsDTO } from './Settings.types';
|
|
import { PublicRoute } from '../Auth/Jwt.guard';
|
|
|
|
@Controller('settings')
|
|
@PublicRoute()
|
|
export class SettingsController {
|
|
constructor(
|
|
private readonly settingsApplicationService: SettingsApplicationService,
|
|
) {}
|
|
|
|
@Post('')
|
|
async saveSettings(@Body() settingsDTO: ISettingsDTO) {
|
|
return this.settingsApplicationService.saveSettings(settingsDTO);
|
|
}
|
|
|
|
@Get('')
|
|
async getSettings() {}
|
|
}
|