I’ve been trying to make it so that there are multiple pages, like making it so that you can go to something like arandomprojectname.glitch.me/whateveriwanttosetitas but I can’t figure out how to make stuff after the /. Please help.
Hey @DiscordUserCrab,
To do this, you need to add the following piece of code in your server.js
:
app.get("/whateveriwanttosetitas", function(request, response){
response.sendFile(__dirname + "/<THE FILE YOU WANT TO SHOW>");
})
Or he could just add an index.html.