Files
automatisch/packages/backend/src/controllers/api/v1/app-auth-clients/get-app-auth-client.js
2024-02-24 01:02:28 +01:00

12 lines
374 B
JavaScript

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);
};