Right now API calls to the root directory returns a 404 Not Found error. Determine what the correct behavior should be when the root directory is called.
Two possible options are:
Redirect to home directory.
This may result in unexpected behavior for the user, retrieving a list of homes.
Keep it responding with a Not Found error.
Return html identifying the application.
This may result in unexpected behavior that a user application may not be able to handle, as opposed to a standard 404 error.
Research typical ways calls to the root directory are handled.
With any solution, there are empty code sections i the nest.js objects at the root that need to be either filled with suitable functionality or deleted. These files include:
app.controller.ts
app.service.ts
app.controller.spec.ts
In addition, a test needs to be written for a root API call, which will define the expected behavior.
Right now API calls to the root directory returns a 404 Not Found error. Determine what the correct behavior should be when the root directory is called. Two possible options are:
Research typical ways calls to the root directory are handled.
With any solution, there are empty code sections i the nest.js objects at the root that need to be either filled with suitable functionality or deleted. These files include:
app.controller.ts
app.service.ts
app.controller.spec.ts
In addition, a test needs to be written for a root API call, which will define the expected behavior.