An Express-like HTTP router for Bash compatible with CGI 1.1
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/bash
|
|
|
|
file_dir="$(dirname "$0")"
|
|
|
|
|
|
|
|
source "$file_dir/src/exprash.sh"
|
|
|
|
|
|
|
|
source "$file_dir/tests/utils.sh"
|
|
|
|
|
|
|
|
printf '%s\n' "Routes:"
|
|
|
|
source "$file_dir/tests/routes.sh"
|
|
|
|
printf '\n'
|
|
|
|
|
|
|
|
printf '%s\n' "Query String:"
|
|
|
|
source "$file_dir/tests/query.sh"
|
|
|
|
printf '\n'
|
|
|
|
|
|
|
|
printf '%s\n' "Cookies:"
|
|
|
|
source "$file_dir/tests/cookies.sh"
|
|
|
|
printf '\n'
|
|
|
|
|
|
|
|
printf '%s\n' "Session:"
|
|
|
|
source "$file_dir/tests/session.sh"
|
|
|
|
printf '\n'
|
|
|
|
|
|
|
|
testSummary;
|