|
|
@ -32,6 +32,7 @@ def main(global_config: Dict[str, str], **settings: str) -> PrefixMiddleware: |
|
|
|
config.include("tildes.jinja") |
|
|
|
config.include("tildes.json") |
|
|
|
config.include("tildes.routes") |
|
|
|
config.include("tildes.tweens") |
|
|
|
|
|
|
|
config.add_webasset("javascript", Bundle(output="js/tildes.js")) |
|
|
|
config.add_webasset("javascript-third-party", Bundle(output="js/third_party.js")) |
|
|
@ -39,10 +40,6 @@ def main(global_config: Dict[str, str], **settings: str) -> PrefixMiddleware: |
|
|
|
|
|
|
|
config.scan("tildes.views") |
|
|
|
|
|
|
|
config.add_tween("tildes.tweens.http_method_tween_factory") |
|
|
|
config.add_tween("tildes.tweens.metrics_tween_factory") |
|
|
|
config.add_tween("tildes.tweens.theme_cookie_tween_factory") |
|
|
|
|
|
|
|
config.add_static_view("images", "/images") |
|
|
|
|
|
|
|
config.add_request_method(is_safe_request_method, "is_safe_method", reify=True) |
|
|
|