feat: implement app-auth-client endpoint

This commit is contained in:
Rıdvan Akca
2024-02-16 13:11:21 +03:00
committed by Faruk AYDIN
parent ca7636e7bc
commit d17d8e2805
14 changed files with 242 additions and 0 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({ active: true })
.throwIfNotFound();
renderObject(response, appAuthClient);
};