feat: Implement new admin get auth clients API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-27 13:42:41 +01:00
parent e9bc9b1aa8
commit 85b4cd4998
5 changed files with 103 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 })
.orderBy('created_at', 'desc');
renderObject(response, appAuthClients);
};