Clack.App.URLMap - Map multiple apps in different paths.
SYNOPSIS
(defparameter *urlmap* (make-instance '<clack-app-urlmap>))
(mount *urlmap* "/pc/" #'app-for-pc)
(mount *urlmap* "/api/" #'app-for-api)
(call *urlmap* env)
;; Useful synonym.
(builder-urlmap
("/pc/" #'app-for-pc)
("/api/" #'app-for-api))
AUTHOR
- Eitarow Fukamachi (e.arrows@gmail.com)
SEE ALSO
EXTERNAL SYMBOLS
-
Class: <clack-app-urlmap> inherits (<component>)
Class to map multiple apps in different paths.
- %mapping
-
Method: mount
[(this <clack-app-urlmap>) location app]
Register an `app` to the `location`.
-
Method: call
[(this <clack-app-urlmap>) env]
-
Macro: builder-urlmap
[&rest apps]
Useful syntax sugar for building applications.