This commit is contained in:
Daniel Saewitz
2013-02-25 14:32:46 -05:00
parent 7ce7677816
commit e4f4227072
2 changed files with 4 additions and 4 deletions
+2 -3
View File
@@ -11,12 +11,11 @@ icalendar = require 'icalendar'
NO_TOKEN_OR_UID = err: "You must include a token and uid (user id) in your request"
NO_USER_FOUND = err: "No user found."
# ---------- /v1 API ------------
# Every url added beneath router is prefaced by /v1
# ---------- /api/v1 API ------------
# Every url added beneath router is prefaced by /api/v1
###
v1 API. Requires user-id and apiToken, task-id, direction. Test with:
curl -X POST -H "Content-Type:application/json" -d '{"apiToken":"{TOKEN}"}' localhost:3000/v1/users/{UID}/tasks/productivity/up
###
auth = (req, res, next) ->