feat: Add checkIsCloud middleware for routes

This commit is contained in:
Faruk AYDIN
2024-02-14 13:06:58 +01:00
parent 69727e78df
commit b599466ffa

View File

@@ -0,0 +1,11 @@
import appConfig from '../config/app.js';
export const checkIsCloud = async (request, response, next) => {
if (appConfig.isCloud) {
next();
} else {
return response.status(404).end();
}
};
export default checkIsCloud;