aboutsummaryrefslogtreecommitdiffstats
path: root/scrumli.lisp
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-07-04 21:51:31 +0200
committerGravatar Tom Willemse2013-07-04 21:51:31 +0200
commitc65cde9e8e55b39ff468e4b5ce76d51fb0468d7e (patch)
tree5f9fe787c0b381cf9feef1dace2bf269f74e0e84 /scrumli.lisp
parentb8fad180475a847dab845a2cc7bcf56ab274ee46 (diff)
downloadscrumli-c65cde9e8e55b39ff468e4b5ce76d51fb0468d7e.tar.gz
scrumli-c65cde9e8e55b39ff468e4b5ce76d51fb0468d7e.zip
Add tasks to stories
Diffstat (limited to 'scrumli.lisp')
-rw-r--r--scrumli.lisp7
1 files changed, 7 insertions, 0 deletions
diff --git a/scrumli.lisp b/scrumli.lisp
index ef2b66a..0f563d9 100644
--- a/scrumli.lisp
+++ b/scrumli.lisp
@@ -80,6 +80,13 @@
200)
403))
+(define-route tasks-new ("stories/:id/tasks/new" :method :post)
+ (if (logged-in-p)
+ (let ((description (hunchentoot:post-parameter "description")))
+ (post-task id description (hunchentoot:session-value :username))
+ 200)
+ 403))
+
(define-route stories-state ("stories/state" :method :post)
(if (logged-in-p)
(let* ((id (hunchentoot:post-parameter "id"))