On the assignment of nodejs routing path

  http://www.jianshu.com/u/b473. journal b473784d730c indicates that the accessed file exists in the path on the web server. But the above"/ create","is casually given by the routing backend and is not necessarily under the create folder. 
Gods, I would like to ask whether a folder with a specified name will be automatically generated on the web server to store files as long as the route is specified.
should not follow the front-end file path

Feb.19,2022

when the backend receives a url, it will call the processing function corresponding to the url, and decide what to return in the processing function, and the corresponding file does not necessarily exist.
for example, if a path returns the current time, then this time is generated by the function and does not need to access the file.
and even if there is a corresponding file, it is returned after being loaded by the function. And the path does not need to correspond.
so it is up to the corresponding processing function of url to decide whether the specified file is needed or not.

in fact, if you don't have a back-end foundation at all, you can find a set of node tutorials to learn. There are many free searches on the Internet, or at least sort out a lot of basic concepts.

Menu