Remove prefix option
This commit is contained in:
parent
76ae43160a
commit
0d9b68a75a
10
web.lisp
10
web.lisp
@ -284,7 +284,7 @@ reblocks bug.")
|
|||||||
(call-next-method)))
|
(call-next-method)))
|
||||||
|
|
||||||
(defapp truth-table-app
|
(defapp truth-table-app
|
||||||
:prefix "/")
|
:prefix *default-prefix*)
|
||||||
|
|
||||||
(defmethod reblocks/page:init-page ((app truth-table-app) (url-path string)
|
(defmethod reblocks/page:init-page ((app truth-table-app) (url-path string)
|
||||||
expire-at)
|
expire-at)
|
||||||
@ -299,10 +299,7 @@ reblocks bug.")
|
|||||||
,(format nil "specify port to use (default: ~d)" *default-port*))
|
,(format nil "specify port to use (default: ~d)" *default-port*))
|
||||||
(#\a "address" address t
|
(#\a "address" address t
|
||||||
,(format nil "specify address to bind to (default: ~a)"
|
,(format nil "specify address to bind to (default: ~a)"
|
||||||
*default-address*))
|
*default-address*)))
|
||||||
(#\x "prefix" prefix t
|
|
||||||
,(format nil "specify the URL prefix (default: ~a)"
|
|
||||||
*default-prefix*)))
|
|
||||||
"Spec for use in `parse-command-line.")
|
"Spec for use in `parse-command-line.")
|
||||||
|
|
||||||
(defun determine-port (opts)
|
(defun determine-port (opts)
|
||||||
@ -347,9 +344,6 @@ arguments."
|
|||||||
(uiop:quit 0)))
|
(uiop:quit 0)))
|
||||||
(when cmdline-error
|
(when cmdline-error
|
||||||
(uiop:quit 1))
|
(uiop:quit 1))
|
||||||
(defapp truth-table-app
|
|
||||||
:prefix (or (option-value 'prefix opts)
|
|
||||||
*default-prefix*))
|
|
||||||
(reblocks/server:start :apps '(truth-table-app)
|
(reblocks/server:start :apps '(truth-table-app)
|
||||||
:port port
|
:port port
|
||||||
:interface address
|
:interface address
|
||||||
|
Loading…
Reference in New Issue
Block a user