Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the Files tree, right-click on newly-created file pjstips_02_1.js, and click Properties. Mark the file as an Express Route, using HTTP method of "GET", with the Route Path as shown below.


Now, you call "call" that PJS module as a web service from a browser, using the URL http://localhost:8081/run/pjstips/pjstips_02_1 on browser. The format is of the URL is http://host:port/run/<Route Path>, where <Route Path> is sown in the picture above.