feat: Implement get app auth API endpoint

This commit is contained in:
Faruk AYDIN
2024-02-28 16:16:08 +01:00
parent 356668a68d
commit 5dca0191d2
4 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import App from '../../../../models/app.js';
import { renderObject } from '../../../../helpers/renderer.js';
export default async (request, response) => {
const auth = await App.findAuthByKey(request.params.appKey);
renderObject(response, auth, { serializer: 'Auth' });
};