Tweaks
parent
90eaffe40c
commit
4b219373a5
|
@ -79,7 +79,7 @@ TUPLE: action rest authorize init display validate submit ;
|
|||
|
||||
: revalidate-url ( -- url/f )
|
||||
revalidate-url-key param
|
||||
dup [ >url [ same-host? ] keep and ] when ;
|
||||
dup [ >url ensure-port [ same-host? ] keep and ] when ;
|
||||
|
||||
: validation-failed ( -- * )
|
||||
post-request? revalidate-url and [
|
||||
|
|
|
@ -13,7 +13,7 @@ TUPLE: help-webapp < dispatcher ;
|
|||
|
||||
[
|
||||
{
|
||||
{ "search" [ 2 v-min-length 50 v-max-length v-one-line ] }
|
||||
{ "search" [ 1 v-min-length 50 v-max-length v-one-line ] }
|
||||
} validate-params
|
||||
|
||||
help-dir set-current-directory
|
||||
|
|
|
@ -77,10 +77,9 @@ SYMBOL: dh-file
|
|||
"password" key-password set-global
|
||||
common-configuration
|
||||
<factor-website>
|
||||
<pastebin> "pastebin" add-responder
|
||||
<planet> "planet" add-responder
|
||||
<pastebin> <factor-boilerplate> "pastebin" add-responder
|
||||
<planet> <factor-boilerplate> "planet" add-responder
|
||||
"/tmp/docs/" <help-webapp> "docs" add-responder
|
||||
<factor-boilerplate>
|
||||
<configuration>
|
||||
main-responder set-global ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue