Improve
This commit is contained in:
parent
6a08fb4677
commit
fff8929b0e
4 changed files with 9 additions and 49 deletions
src
|
@ -3,15 +3,14 @@
|
|||
(:import-from #:jingle
|
||||
#:make-app
|
||||
#:install-middleware
|
||||
#:static-path
|
||||
#:configure)
|
||||
(:import-from #:ningle-fbr
|
||||
#:set-routes)
|
||||
(:import-from #:hp/middlewares/recoverer
|
||||
#:*recoverer*)
|
||||
(:import-from #:hp/middlewares/trailing-slash
|
||||
(:import-from #:lack-mw
|
||||
#:*trim-trailing-slash*)
|
||||
(:import-from #:hp/middlewares/public-server
|
||||
#:*public-server*)
|
||||
(:import-from #:hp/renderer)
|
||||
(:export #:*app*))
|
||||
(in-package #:hp/app)
|
||||
|
@ -21,7 +20,8 @@
|
|||
(set-routes app :system :hp :target-dir-path "routes")
|
||||
(install-middleware app *recoverer*)
|
||||
(install-middleware app *trim-trailing-slash*)
|
||||
(install-middleware app *public-server*)
|
||||
(static-path app "/img/" "public/img/")
|
||||
(static-path app "/style/" "public/style/")
|
||||
(configure app)))
|
||||
|
||||
*app*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue