forked from cadence/breezewiki
blankie
5ad5326425
Fixes https://lists.sr.ht/~cadence/breezewiki-discuss/%3Cb2835a70-5118-4df0-90c9-4333486a4b69%40nixnetmail.com%3E
34 lines
1.1 KiB
Racket
34 lines
1.1 KiB
Racket
#lang racket/base
|
|
(require web-server/servlet-dispatch
|
|
"src/config.rkt"
|
|
"src/dispatcher-tree.rkt")
|
|
|
|
(require (only-in "src/page-category.rkt" page-category))
|
|
(require (only-in "src/page-global-search.rkt" page-global-search))
|
|
(require (only-in "src/page-home.rkt" page-home))
|
|
(require (only-in "src/page-not-found.rkt" page-not-found))
|
|
(require (only-in "src/page-proxy.rkt" page-proxy))
|
|
(require (only-in "src/page-redirect-wiki-home.rkt" redirect-wiki-home))
|
|
(require (only-in "src/page-search.rkt" page-search))
|
|
(require (only-in "src/page-static.rkt" static-dispatcher))
|
|
(require (only-in "src/page-subdomain.rkt" subdomain-dispatcher))
|
|
(require (only-in "src/page-wiki.rkt" page-wiki))
|
|
(require (only-in "src/page-file.rkt" page-file))
|
|
|
|
(serve/launch/wait
|
|
#:listen-ip (if (config-true? 'debug) "127.0.0.1" #f)
|
|
#:port (string->number (config-get 'port))
|
|
(λ (quit)
|
|
(dispatcher-tree
|
|
; order of these does not matter
|
|
page-category
|
|
page-global-search
|
|
page-home
|
|
page-not-found
|
|
page-proxy
|
|
page-search
|
|
page-wiki
|
|
page-file
|
|
redirect-wiki-home
|
|
static-dispatcher
|
|
subdomain-dispatcher)))
|