An attempt to refactor POST /api/notes/ using Q