I have a node.js bot that’s running on glitch and works just fine. I wanted to know how I can put a main welcome page (with probably just a logo on it) so that people visiting the project don’t only see this message:
Here’s a link to my project: https://glitch.com/~daily-nasa.
Any advice is welcome!
Hi welcome to the comunity! You can do a app.get
middleware to intercept all get requests and send something.
1 Like
My bot wakes up with an endpoint URL, so I’m not sure if adding the app.get
will cause any breakage. Do you still recommend it?
The method I mentioned will only affect GET requests sent to the main page and will not interfere on any other route. So this method is pretty safe to use.
Ah, perfect! Thank you very much 