diff options
| author | Jakob L. Kreuze | 2023-08-05 14:24:22 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze | 2023-08-05 16:34:11 -0400 |
| commit | 323c8449e2d8a7c1f5a51689fc1e5bc298eb5355 (patch) | |
| tree | dd66ba47931e0d95acc3136bc09cc265eb39ee9a /haunt/api.scm | |
| parent | 3843093f47e8c8a177f9769d543c6fdc334b5259 (diff) | |
[dynamic] Implement debug mode for local development
Diffstat (limited to 'haunt/api.scm')
| -rw-r--r-- | haunt/api.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/haunt/api.scm b/haunt/api.scm index 2b476d7..b6093f6 100644 --- a/haunt/api.scm +++ b/haunt/api.scm @@ -17,6 +17,7 @@ (use-modules (ice-9 match) (jakob dynamic blacklist) (jakob dynamic captcha) + (jakob dynamic config) (jakob dynamic capabilities comment-form) (jakob dynamic capabilities comments) (jakob dynamic capabilities gallery) @@ -66,7 +67,7 @@ (values->list (format-error-response ex)))) (fail-when-ip-blacklisted originating-ip) (values->list - ((rate-limit-wrap + (((if (%debug-enabled) identity rate-limit-wrap) (match (cons (request-method request) endpoint) (('GET "apps" "comment-form" _) get-comment-form) ('(GET "api" "challenge" "proof-of-work") make-pow-challenge!) |