I know that it isn't a programming question, but I've that question:
Supposing that I have the following URL's:
http://ift.tt/2vKcCCP
http://ift.tt/2ulDFBb
http://ift.tt/2vK5ab6
http://ift.tt/2ulDE05
http://ift.tt/2vKoS6e
http://ift.tt/2ulXYOI
http://ift.tt/2vKoNPY
http://ift.tt/2umpqMi
http://ift.tt/2vKenju
...
And so more (about 10 or 20)
Do I need to have ONE get for each URL? For example: (I will put the example did in express framework):
app.get('media', ...) {}
app.get('media/app', ...) {}
app.get('media/app/views', ...) {}
app.get('media/handler', ...) {}
app.get('media/handler/static', ...) {}
app.get('media/application/telegram', ...) {}
app.get('media/application/messenger', ...) {}
app.get('media/general', ...) {}
app.get('media/general/archives', ...) {}
And so on?
Because, for example, I see a Microsoft websites or Google, they have a lot of views (I refer to html page) and a LOT of different URL paths. So I suppose if I've a 200 different url's, do I need to have 200 different GET to handle every request for each one?
Is a good idea store all get for the website in one file? Or divide by sections in folders?
Thank you, hope you can answer me.
Aucun commentaire:
Enregistrer un commentaire