To install Deno, follow the setup guide found here.
Run the following command in your terminal to start the server.
deno run --allow-net --allow-read server.ts
Simply create a file inside the controllers
directory which corresponds to the name of the required base path. For example, if you require a base path similar to /api/v1/products
simply create a file named products.ts
inside the controllers
directory. The route configuration will automatically pickup the new endpoints defined inside this file using the filename as the base path.