We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa15ccb commit 1a807c6Copy full SHA for 1a807c6
src/index.js
@@ -68,7 +68,8 @@ export default {
68
ctx.config = config;
69
70
console.debug('resolved config: ', JSON.stringify(config));
71
- if (!config) {
+ // if config not defined and the request is not to set the config, 404
72
+ if (!config && (request.method !== 'POST' || ctx.url.pathname.split('/')[3] !== 'config')) {
73
return errorResponse(404, 'config not found');
74
}
75
0 commit comments