aboutsummaryrefslogtreecommitdiffstats
path: root/scrumli.lisp
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-07-24 19:56:52 +0200
committerGravatar Tom Willemse2013-07-24 19:56:52 +0200
commitc67240467588bed6dd182416cff1618d8e169c1b (patch)
tree90f587e55b2cb797d757b024e89aeaf758bd5a7e /scrumli.lisp
parent97c5a1af86cc3e44a2d15b50fd982b204c34d604 (diff)
downloadscrumli-c67240467588bed6dd182416cff1618d8e169c1b.tar.gz
scrumli-c67240467588bed6dd182416cff1618d8e169c1b.zip
Add assignment for stories
Diffstat (limited to 'scrumli.lisp')
-rw-r--r--scrumli.lisp9
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))