refactor: settings module to Nestjs

This commit is contained in:
Ahmed Bouhuolia
2025-01-07 20:43:31 +02:00
parent 385d84d654
commit abf92ac83f
27 changed files with 2647 additions and 3 deletions

View File

@@ -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();
}
}