feat: Implement get app API endpoint

This commit is contained in:
Faruk AYDIN
2024-02-26 17:59:48 +01:00
parent f0e2d36c34
commit 7d5b2ec81e
6 changed files with 668 additions and 1 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 app = await App.findOneByKey(request.params.appKey);
renderObject(response, app);
};