|
|
@ -12,7 +12,7 @@ Here is some leaked source code for my brand new Cat website. Do not steal! |
|
|
|
#!/bin/bash |
|
|
|
#!/bin/bash |
|
|
|
printf '%s\n\n' 'Content-Type: text/html'; |
|
|
|
printf '%s\n\n' 'Content-Type: text/html'; |
|
|
|
|
|
|
|
|
|
|
|
source ../src/exprash.sh; |
|
|
|
source exprash.sh; |
|
|
|
|
|
|
|
|
|
|
|
declare -A cats; |
|
|
|
declare -A cats; |
|
|
|
cats[calico]="Calico"; |
|
|
|
cats[calico]="Calico"; |
|
|
@ -39,7 +39,7 @@ get '/cats/:cat' && { |
|
|
|
fi; |
|
|
|
fi; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
all '/cats/:cat' && { |
|
|
|
use && { |
|
|
|
printf '<h1>Error: Cannot find that cat</h1>\n'; |
|
|
|
printf '<h1>Error: Cannot find that cat</h1>\n'; |
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
``` |
|
|
|