getRedirectToValResponse
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
In cases a web endpoint val expects a certain method like POST, you can use this val to redirect the user to the page of the val using this val, so they can read the readme and use it correctly.
Preferably to use when the method is get, since it might be done by entering the web endpoint into the browser. But if you don't like to return a 405 status for unallowed methods, you can use it for anything but the expected method(s).
if (req.method === "GET") {
return @karfau.getRedirectToValResponse();
}
Migrated from folder: web/getRedirectToValResponse