feat(settings): add admin settings API routes
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { settingsService } from '../../../lib/settings.server';
|
||||
|
||||
test('settings API helper behavior', async () => {
|
||||
const key = 'api_test_' + Date.now();
|
||||
await settingsService.set(key, { foo: 'bar' }, 'test');
|
||||
const v = await settingsService.get(key);
|
||||
expect(v).toEqual({ foo: 'bar' });
|
||||
});
|
||||
Reference in New Issue
Block a user