feat: Implement admin get app auth clients API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-22 14:42:48 +01:00
parent 46e706c415
commit 2ecb802a2e
5 changed files with 84 additions and 3 deletions

View File

@@ -1,7 +1,8 @@
import AppConfig from '../../src/models/app-config.js';
import { faker } from '@faker-js/faker';
export const createAppConfig = async (params = {}) => {
params.key = params?.key || 'gitlab';
params.key = params?.key || faker.lorem.word();
const appConfig = await AppConfig.query().insertAndFetch(params);