2022-08-30 09:33:28 +00:00
|
|
|
#lang racket/base
|
2022-08-30 12:45:37 +00:00
|
|
|
(require web-server/servlet-dispatch
|
2022-08-30 09:33:28 +00:00
|
|
|
"src/config.rkt"
|
2022-09-04 10:13:36 +00:00
|
|
|
"src/dispatcher-tree.rkt")
|
2022-08-30 09:33:28 +00:00
|
|
|
|
|
|
|
(require (only-in "src/page-category.rkt" page-category))
|
2022-09-17 10:36:04 +00:00
|
|
|
(require (only-in "src/page-global-search.rkt" page-global-search))
|
2022-08-30 09:33:28 +00:00
|
|
|
(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))
|
2022-09-09 04:24:26 +00:00
|
|
|
(require (only-in "src/page-redirect-wiki-home.rkt" redirect-wiki-home))
|
2022-08-30 09:33:28 +00:00
|
|
|
(require (only-in "src/page-search.rkt" page-search))
|
2022-08-30 12:45:37 +00:00
|
|
|
(require (only-in "src/page-static.rkt" static-dispatcher))
|
2022-09-04 13:32:45 +00:00
|
|
|
(require (only-in "src/page-subdomain.rkt" subdomain-dispatcher))
|
2022-08-30 09:33:28 +00:00
|
|
|
(require (only-in "src/page-wiki.rkt" page-wiki))
|
|
|
|
|
|
|
|
(serve/launch/wait
|
|
|
|
#:listen-ip (if (config-true? 'debug) "127.0.0.1" #f)
|
|
|
|
#:port (string->number (config-get 'port))
|
|
|
|
(λ (quit)
|
2022-09-04 10:13:36 +00:00
|
|
|
(dispatcher-tree
|
|
|
|
; order of these does not matter
|
|
|
|
page-category
|
2022-09-17 10:36:04 +00:00
|
|
|
page-global-search
|
2022-09-04 10:13:36 +00:00
|
|
|
page-home
|
|
|
|
page-not-found
|
|
|
|
page-proxy
|
|
|
|
page-search
|
|
|
|
page-wiki
|
2022-10-08 09:16:13 +00:00
|
|
|
page-file
|
2022-09-09 04:24:26 +00:00
|
|
|
redirect-wiki-home
|
2022-09-04 13:32:45 +00:00
|
|
|
static-dispatcher
|
|
|
|
subdomain-dispatcher)))
|