diff options
author | Tom Willemse | 2013-07-24 19:56:52 +0200 |
---|---|---|
committer | Tom Willemse | 2013-07-24 19:56:52 +0200 |
commit | c67240467588bed6dd182416cff1618d8e169c1b (patch) | |
tree | 90f587e55b2cb797d757b024e89aeaf758bd5a7e /scrumli.lisp | |
parent | 97c5a1af86cc3e44a2d15b50fd982b204c34d604 (diff) | |
download | scrumli-c67240467588bed6dd182416cff1618d8e169c1b.tar.gz scrumli-c67240467588bed6dd182416cff1618d8e169c1b.zip |
Add assignment for stories
Diffstat (limited to 'scrumli.lisp')
-rw-r--r-- | scrumli.lisp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scrumli.lisp b/scrumli.lisp index 7c94dcf..362f4a5 100644 --- a/scrumli.lisp +++ b/scrumli.lisp @@ -212,3 +212,12 @@ (if (logged-in-p) (encode-json-to-string (get-story id)) 403)) + +(define-route scrumli-story-set-assignee ("story/assignee" + :content-type "json" + :method :post) + (if (logged-in-p) + (with-post-parameters ("id" "assignee") + (set-assignee 'story id assignee) + (encode-json-to-string '((status . "ok")))) + 403)) |