1
0
mirror of https://git.kore.io/kore.git synced 2024-11-16 06:56:33 +01:00

Rework generic example configuration.

This adjusts the configuration to contain updated routing configs.
This commit is contained in:
Joris Vink 2022-01-31 20:44:14 +01:00
parent a29700f26d
commit 23047d4c2f

View File

@ -28,24 +28,54 @@ domain * {
certkey cert/key.pem
accesslog kore_access.log
route /css/style.css asset_serve_style_css
route / asset_serve_index_html
route /intro.jpg asset_serve_intro_jpg
route /b64test serve_b64test
route /upload serve_file_upload
route /validator serve_validator
route /params-test serve_params_test
route /private serve_private
route /private/test asset_serve_private_test_html auth_example
params post /params-test {
validate test1 v_example
validate test2 v_regex
route /css/style.css {
handler asset_serve_style_css
methods get
}
params get /params-test {
validate arg1 v_example
validate id v_number
route / {
handler asset_serve_index_html
methods get
}
route /intro.jpg {
handler asset_serve_intro_jpg
methods get
}
route /b64test {
handler serve_b64test
methods get
}
route /upload {
handler serve_file_upload
methods get post
}
route /validator {
handler serve_validator
methods get
}
route /params-test {
handler serve_params_test
methods get post
validate qs:get arg1 v_example
validate qs:get id v_number
validate post test1 v_example
validate post test2 v_regex
}
route /private {
handler serve_private
methods get
}
route /private/test {
handler asset_serve_private_test_html
authenticate auth_example
}
}