mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
refactor: settings module to Nestjs
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user