I realize this is just because I'm dense, but...
What's a simple way to implement the "routing" functionality that's common in most modern web app frameworks (Rails, Sinatra, etc)?
You cannot use an url like .../dev/pageToRouteTo and then access 'pageToRouteTo' from the doGet()
What you can do, is use a parameter e.g. .../dev?NextPage=pageToRouteTo and then
run code like:
function doGet(e){
if('parameters' in e && 'NextPage' in e.parameters){
loadPage(e.parameters.NextPage[0])
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With