feat: Implement new get auth clients api endpoint

This commit is contained in:
Faruk AYDIN
2024-03-26 21:15:48 +01:00
parent d21888c047
commit 6dc54ecabc
5 changed files with 61 additions and 2 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({ app_key: request.params.appKey, active: true })
.orderBy('created_at', 'desc');
renderObject(response, appAuthClients);
};