bashtube/routes.sh
2021-02-26 23:23:55 +01:00

16 lines
457 B
Bash

#router "/profile/:user" "app/webroot/index.shs"
#router "/uwu" "owo"
router "/channel/:id" "${cfg[namespace]}/webroot/channel.shs"
router "/user/:user" "${cfg[namespace]}/webroot/channel.shs"
router "/playlist" "${cfg[namespace]}/webroot/playlist.shs"
if [[ "${r[host]}" == "${cfg[flash_host]}" ]]; then
router "/watch" "${cfg[namespace]}/webroot/watch_flash.shs"
else
router "/watch" "${cfg[namespace]}/webroot/watch.shs"
fi
echo "${r[host]}" > tmp