I want to upload a txt file to my site so that the txt file’s contents will show when I search “https://vertex-io.glitch.me/name.txt”. So far, I have managed to upload the txt file to the project, but how do I use html or js to make it like the example above?
If you are making static site, make sure the
name.txt was uploaded on the same dir level. In this case, it is top dir,
If your site is powered by NodeJs, you need to set up params for your router, which is the top endpoint
/. I guess the path of your router should look like this:
To archive it in the most easiest way, I recommend ExpressJs modules for NodeJs. Read more about this in here.