feat: Implement get app auth clients API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-22 15:05:22 +01:00
parent 104d49ea1c
commit 3596d13be1
4 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import { renderObject } from '../../../../helpers/renderer.js';
import AppAuthClient from '../../../../models/app-auth-client.js';
export default async (request, response) => {
const appAuthClients = await AppAuthClient.query()
.where({ active: true })
.orderBy('created_at', 'desc');
renderObject(response, appAuthClients);
};