mirror of
https://github.com/sigmasternchen/shochu
synced 2025-03-15 07:38:55 +00:00
28 lines
240 B
Bash
Executable file
28 lines
240 B
Bash
Executable file
#!/bin/bash
|
|
|
|
. base.sh
|
|
|
|
route GET / index
|
|
index() {
|
|
endHeaders
|
|
|
|
echo "Hello World"
|
|
}
|
|
|
|
route GET /foo foobar
|
|
foobar() {
|
|
status 417
|
|
endHeaders
|
|
|
|
echo "bar"
|
|
}
|
|
|
|
route GET /debug debug
|
|
debug() {
|
|
endHeaders
|
|
|
|
echo "$pathInfo"
|
|
set
|
|
}
|
|
|
|
router
|