2021-02-18 01:17:09 +01:00
|
|
|
#router "/profile/:user" "app/webroot/index.shs"
|
|
|
|
#router "/uwu" "owo"
|
|
|
|
|
2021-02-26 23:23:55 +01:00
|
|
|
|
2021-02-18 01:17:09 +01:00
|
|
|
router "/channel/:id" "${cfg[namespace]}/webroot/channel.shs"
|
|
|
|
router "/user/:user" "${cfg[namespace]}/webroot/channel.shs"
|
|
|
|
router "/playlist" "${cfg[namespace]}/webroot/playlist.shs"
|
2021-02-26 23:23:55 +01:00
|
|
|
|
|
|
|
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
|