Versions Compared

Key

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

Routes can be created automatically based off your folder structure. This is the fastest and easiest way of getting started, and is probably enough for the majority of projects.

Creating Routes Automatically

...

In your project folder, create a subfolder for each route, and inside that subfolder, create an index.js file.

For example

...

  • /MyProject/helloworld/index.js
  • /MyProject/downloadjobs/index.js
  • /MyProject/savejobs/index.js

...

Info

Note: each route, or subfolder, must have an index.js file, and you can include other scripts files as needed


Accessing Routes

...

Once you have created your projects, your routes become the path in your URL.

...


Examples

...

If you haven't yet created any routes for your project, you can quickly get started by downloading the examples ZIP from the Server CLI Examples and Tips page.


Next Step

...

Creating Custom Routes