mirror of
https://github.com/sigmasternchen/shochu
synced 2025-03-15 15:48:56 +00:00
25 lines
304 B
Bash
Executable file
25 lines
304 B
Bash
Executable file
#!/bin/bash
|
|
|
|
. base.sh
|
|
. mysql.sh
|
|
. credentials.sh
|
|
|
|
connect "$mysqlHost" "$mysqlUser" "$mysqlPassword" "$mysqlDB"
|
|
|
|
route GET / index
|
|
index() {
|
|
endHeaders
|
|
|
|
echo "Users:"
|
|
echo "SELECT * FROM users" | query | getColumns 2
|
|
}
|
|
|
|
route GET /debug debug
|
|
debug() {
|
|
endHeaders
|
|
|
|
echo "$pathInfo"
|
|
set
|
|
}
|
|
|
|
router
|