shithub: rc-gemd

ref: 8b3ea55d7a984e1241b211036a42ee62392616d5
dir: /handlers/static-or-index/

View raw version
#!/bin/rc
full_path=`{echo $"fs_root^$"location | urlencode -d}
full_path=$"full_path
if(~ $"location */)
	exec dir-index
if(test -d $full_path){
	location=$location^'/'
	exec dir-index
}
exec serve-static