Now, in this part, we are going to create some simple index page, an item page and also the error
page instead of just we to America like this.
So now we are going to create a voter poll reveals.
And inside here, we create the index of XHTML.
And then we just use the Emet to create the Indesit and now we just type a header to indicate it is
index page.
And then we call PD.
And we change the name as the item page.
And we changed the header to at Idam.
And also to create a four ofl page.
The error page.
Now, we already created these three pages.
Now we can go to the airport jets and instead of return, they were cook directly, we are going to
return to file.
So we used to respond and file and then we used the relative path.
We use abuse and in that XHTML, but the Express need to know where is relative from.
So we also need to pass the second argument of the route.
And then.
Underscore, underscore, direct.
This is the current directory.
So now if we refresh the page, we can see that in this page.
So now we can copy and paste this to the at item.
And we changed this to an item.
Now, if we go to these and change the path to item.
We can also see this item page.
And if we go to the page that doesn't exist, we will get this error.
So to fix this, we have to use the app to use.
And here we also copy and paste here, and this time we are going to return to our page.
So now if we go to these POF again, that doesn't exist, we refresh.
You can see this is the error page.
So no matter some pages that do not have any files, you will go to this error page and what its function
is for every incoming class.
You have to go to this party and there is no matches about where we turn this page.
So we just can put this code at the bottom, because if we put these on the top just like this and every
request will go to this page and we will not go to the next line of the code.
So, for example, if we just go to the index page, we also just can go to the full full page because
it already possibility's requirement.
So we have to put this at the bottom.
So now I can we can go to the index.
And also at item.
And if there is some big crash that doesn't exist, for example, it will go to the error page.