diff options
author | Yorhel <git@yorhel.nl> | 2019-12-08 10:41:09 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-12-08 10:41:12 +0100 |
commit | 113ca9f820f24b81486b5fb66045aa5ac1cb49c5 (patch) | |
tree | 3f3957372a2b6dace43996fdfcf3100bb239556e /lib/VNWeb/Misc/BBCode.pm | |
parent | bf8739d1a5bc777eff864b6314a1e9bc3f464946 (diff) |
Fix json_api() URL matching + move URL parameters to POST body
For more consistency. Only exception right now is the password reset
form, which still has parameters in the URL. Didn't convert it as that
code doesn't use the elm_form() framework at the moment.
Diffstat (limited to 'lib/VNWeb/Misc/BBCode.pm')
-rw-r--r-- | lib/VNWeb/Misc/BBCode.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/Misc/BBCode.pm b/lib/VNWeb/Misc/BBCode.pm index 09501cb8..643ccbc4 100644 --- a/lib/VNWeb/Misc/BBCode.pm +++ b/lib/VNWeb/Misc/BBCode.pm @@ -2,7 +2,7 @@ package VNWeb::Misc::BBCode; use VNWeb::Prelude; -json_api '/js/bbcode.json', { +json_api qr{/js/bbcode\.json}, { content => { required => 0, default => '' } }, sub { elm_Content bb2html bb_subst_links shift->{content}; |