mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
17 lines
415 B
TypeScript
17 lines
415 B
TypeScript
import { Controller, Get } from '@nestjs/common';
|
|
import { Inject } from '@nestjs/common';
|
|
import { SETTINGS } from './Settings.module';
|
|
import { SettingsStore } from './SettingsStore';
|
|
|
|
@Controller('settings')
|
|
export class SettingsController {
|
|
constructor(
|
|
@Inject(SETTINGS) private readonly settingsStore: SettingsStore,
|
|
) {}
|
|
|
|
@Get('')
|
|
async getSettings() {
|
|
return this.settingsStore.all();
|
|
}
|
|
}
|