So I made a website to display my cards and when i tried to link another page in the views
folder, It responded with cannot GET /filenamehere
what do i do?
Hey @aboutdavidold,
If you can tell me your project name, I might be able to view it and help you!
1 Like
Ok so, I am currently trying to backup a website and when i go to really-bad-backups.glitch.me/miovo.me
, it says it cant be accessed even though I added it and refreshed it.
You’re getting this error because you do not have an app.get()
in your server.js
!
I think you need to add this code in your server.js
:
app.get("/miovo.me", (request, response) => {
response.sendFile(`${__dirname}/views/miovo.me/index.html`);
});
Thank you very much khalby786
1 Like