mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-24 16:24:32 +00:00
Rationalise docs part 1 #151
This commit is contained in:
+13
-3
@@ -4,7 +4,7 @@ import os
|
||||
import threading
|
||||
|
||||
import tornado
|
||||
from tornado.web import StaticFileHandler
|
||||
from tornado.web import RedirectHandler, StaticFileHandler
|
||||
|
||||
from core.config import (
|
||||
ALLOW_SPOTTING,
|
||||
@@ -221,10 +221,20 @@ class WebServer:
|
||||
{"template_name": "status"},
|
||||
),
|
||||
(
|
||||
r"/about",
|
||||
r"/help",
|
||||
PageTemplateHandler,
|
||||
{"template_name": "about"},
|
||||
{"template_name": "help/index"},
|
||||
),
|
||||
] + [
|
||||
(
|
||||
rf"/help/{page}",
|
||||
PageTemplateHandler,
|
||||
{"template_name": f"help/{page}"},
|
||||
)
|
||||
for page in ["about", "using", "faq", "accuracy", "privacy", "thanks"]
|
||||
] + [
|
||||
# Old "About" page URL, redirect for the benefit of existing links & bookmarks
|
||||
(r"/about", RedirectHandler, {"url": "/help"}),
|
||||
]
|
||||
# Only allow the Add Spot page if spotting is allowed
|
||||
if ALLOW_SPOTTING:
|
||||
|
||||
Reference in New Issue
Block a user