diff options
-rw-r--r-- | README.org | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -105,14 +105,14 @@ E.g :initarg :bar-val)) (:metaclass weekend:endpoint) (:method . :get) - (:route-groups "foo" "([0-9]+)" "bar" "(blah|nah)") + (:route-parts "foo" "([0-9]+)" "bar" "(blah|nah)") (:extractors (:foo-id parse-integer) :bar-val)) #+end_src -In ~:route-groups~ there are four parts, two match groups, and two -extractors. +In ~:route-parts~ there are four parts, two match groups. The +~:extractors~ slot has two extractor specs. The parts will be combined into a regular expression: ="^/foo/([0-9]+)/bar/(blah|nah)$"= @@ -150,7 +150,7 @@ route, leaving the other to be a query parameter. :initform (weekend:slot-required 'bar-val 'example2)) (:metaclass weekend:endpoint) (:method . :get) - (:route-groups "foo" "([0-9]+)" "bar") + (:route-parts "foo" "([0-9]+)" "bar") (:extractors (:foo-id parse-integer))) #+end_src |