aboutsummaryrefslogtreecommitdiffstats
path: root/scrumli.lisp
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-07-05 00:37:44 +0200
committerGravatar Tom Willemse2013-07-05 00:37:44 +0200
commit901fc7b5dcc0acf08b3e85d2160034ee47daedb2 (patch)
tree7cf6f640807262faa1008da581f7579783509a72 /scrumli.lisp
parent74ec275c8f1d779703f609dbc29ccd7ad94f690c (diff)
downloadscrumli-901fc7b5dcc0acf08b3e85d2160034ee47daedb2.tar.gz
scrumli-901fc7b5dcc0acf08b3e85d2160034ee47daedb2.zip
Pass story id as POST parameter
For some reason using a route template "stories/:id/tasks/new" works locally, but not on my server, so do without.
Diffstat (limited to 'scrumli.lisp')
-rw-r--r--scrumli.lisp5
1 files changed, 3 insertions, 2 deletions
diff --git a/scrumli.lisp b/scrumli.lisp
index 24c4469..26f99c5 100644
--- a/scrumli.lisp
+++ b/scrumli.lisp
@@ -80,9 +80,10 @@
200)
403))
-(define-route tasks-new ("stories/:id/tasks/new" :method :post)
+(define-route tasks-new ("stories/tasks/new" :method :post)
(if (logged-in-p)
- (let ((description (hunchentoot:post-parameter "description")))
+ (let ((id (hunchentoot:post-parameter "storyId"))
+ (description (hunchentoot:post-parameter "description")))
(post-task id description (hunchentoot:session-value :username))
200)
403))