52c09d888e
This fixes http.sh on nixos, macos and probably a few other systems
10 lines
196 B
Bash
Executable file
10 lines
196 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# route.sh - basic router stub
|
|
|
|
# router(uri, path)
|
|
function router() {
|
|
route+=("$1")
|
|
route+=("$(sed -E 's/:[A-Za-z0-9]+/[A-Za-z0-9.,%:\\-_]+/g' <<< "$1")")
|
|
route+=("$2")
|
|
}
|