refactor: Move app config endpoint to apps namespace

This commit is contained in:
Faruk AYDIN
2024-03-25 17:01:16 +01:00
parent fc4eeed764
commit df3297b6ca
6 changed files with 13 additions and 22 deletions

View File

@@ -0,0 +1,12 @@
import { renderObject } from '../../../../helpers/renderer.js';
import AppConfig from '../../../../models/app-config.js';
export default async (request, response) => {
const appConfig = await AppConfig.query()
.findOne({
key: request.params.appKey,
})
.throwIfNotFound();
renderObject(response, appConfig);
};