Write some TODOs

This commit is contained in:
Aurélien Georget 2016-02-05 18:00:47 +01:00
parent 8b7aa8ebce
commit 047f68383f

View File

@ -44,6 +44,9 @@ module.exports = {
break; break;
case 'PATCH': case 'PATCH':
case 'POST': case 'POST':
// TODO:
// - Detect relationships edition or addition
// - Fetch and format body
try { try {
yield this.fetchSchema(ctx); yield this.fetchSchema(ctx);
yield this.formatBody(ctx); yield this.formatBody(ctx);
@ -52,7 +55,9 @@ module.exports = {
} }
break; break;
case 'DELETE': case 'DELETE':
// Nothing to do // TODO:
// - Detect relationships deletion
// - Fetch and format body
break; break;
default: default:
throw { throw {