From 6bed4694e00bbfe3ff65dd00ccb45decf1321d57 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 27 Feb 2012 00:00:12 +0100 Subject: New subsite: Book Marx. --- src/mulk/benki/util.clj | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/mulk/benki/util.clj') diff --git a/src/mulk/benki/util.clj b/src/mulk/benki/util.clj index 5c7cd97..d61eca4 100644 --- a/src/mulk/benki/util.clj +++ b/src/mulk/benki/util.clj @@ -41,7 +41,10 @@ (defn link [& args] (match [(vec args)] - [[:wiki title & xs]] (fresolve "/wiki/~a~@[~a~]" title (first xs)))) + [[:login]] (fresolve "/login") + [[:marx]] (fresolve "/marx") + [[:wiki title & xs]] (fresolve "/wiki/~a~@[~a~]" title (first xs)) + )) (defn call-with-auth [thunk] (if (session/get :user) @@ -51,3 +54,6 @@ (defmacro with-auth [& body] `(call-with-auth (fn [] ~@body))) + +(defn redirect [x] + {:status 302, :headers {"Location" x}, :body ""}) -- cgit v1.2.3