aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cljssss-g.clj8
1 files changed, 5 insertions, 3 deletions
diff --git a/cljssss-g.clj b/cljssss-g.clj
index 1f0b3e6..fb55c85 100644
--- a/cljssss-g.clj
+++ b/cljssss-g.clj
@@ -161,12 +161,14 @@
(lynxy-showfeed (session :id) (Integer/parseInt (params :feed)))))
(GET "/"
(with-session (show-subscriptions (session :id)
- (Integer/parseInt (params :feed))
+ (and (params :feed)
+ (Integer/parseInt (params :feed)))
nil)))
(GET "/entries/*"
(with-session (show-subscriptions (session :id)
- (Integer/parseInt (params :feed))
- 5)))
+ (and (params :feed)
+ (Integer/parseInt (params :feed)))
+ 5))) ;FIXME
(GET "/layout.css"
(serve-file "layout.css"))
(ANY "*"