|
|
@ -211,6 +211,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
(register-handler (mangle-path "/buckets/") 'serve-bucket)
|
|
|
|
(register-handler (mangle-path "/buckets/") 'serve-bucket)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; Static files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(defun serve-file (env) ; This is dum
|
|
|
|
|
|
|
|
(if (uiop:file-exists-p (make-absolute (getf env :request-uri)))
|
|
|
|
|
|
|
|
(list 200 '(:content-type "text/html") (make-absolute (getf env :request-uri)))
|
|
|
|
|
|
|
|
(http-status 404)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(register-handler (mangle-path "/static/") 'serve-file)
|
|
|
|
|
|
|
|
|
|
|
|
;;; server!
|
|
|
|
;;; server!
|
|
|
|
|
|
|
|
|
|
|
|
(defun app (env)
|
|
|
|
(defun app (env)
|
|
|
|