Public
Like
pale-apex-preamble
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.
Viewing readonly version of main branch: v16View latest version
a replacement for a simple express app that accepts a url on it's /
endpoint and returns the page's
source code to the requesting browser.
- added as a test and to replace a similar application formerly hosted at glitch.
- moved main app away from express and implemented an
HTTP Type
val.
- currently the
/
endpoint returns a text string and sets thestatus
andContent-Type
headers. - to replicate the former express app, a get request with a
URL
query element must be parsed and returned.
<form method="GET" action="/"> <label> URL: <input name="url" type="url" required placeholder="URL"> </label> <button type="submit" id="submit">View Source</button> </form> </main> </body> </html>