feat: Implement new admin get app auth client API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-27 13:59:10 +01:00
parent a873fd14bd
commit 0a4ac1cece
5 changed files with 69 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
import { renderObject } from '../../../../../helpers/renderer.js';
import AppAuthClient from '../../../../../models/app-auth-client.js';
export default async (request, response) => {
const appAuthClient = await AppAuthClient.query()
.findById(request.params.appAuthClientId)
.where({ app_key: request.params.appKey })
.throwIfNotFound();
renderObject(response, appAuthClient);
};