feat: Implement get app actions API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-02 16:13:13 +01:00
parent df2fbbabc6
commit 7c368af5ed
4 changed files with 72 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 actions = await App.findActionsByKey(request.params.appKey);
renderObject(response, actions, { serializer: 'Action' });
};