Skip to content

fix: add root route for deployed backend#1463

Open
Junaidm678 wants to merge 1 commit into
idurar:masterfrom
Junaidm678:master
Open

fix: add root route for deployed backend#1463
Junaidm678 wants to merge 1 commit into
idurar:masterfrom
Junaidm678:master

Conversation

@Junaidm678

Copy link
Copy Markdown

Adds a root endpoint ("/") that returns a success response.

Previously, requests to the root URL would fall through to the notFound handler and return:

{
"success": false,
"message": "Api url doesn't exist"
}

This change provides a simple API status response when accessing the deployed backend root URL.

Description

Adds a root endpoint ("/") that returns a success response.

Previously, requests to the root URL would fall through to the notFound handler and return:

{
"success": false,
"message": "Api url doesn't exist"
}

This change provides a simple API status response when accessing the deployed backend root URL.

Related Issues

Fixes #1109

Steps to Test

  1. Start the backend server.
  2. Open the root URL:
    http://localhost:8888/
  3. Verify that the API returns:

{
"success": true,
"message": "API is running successfully 🚀"
}

Adds a root endpoint ("/") that returns a success response.

Previously, requests to the root URL would fall through to the notFound handler and return:

{
  "success": false,
  "message": "Api url doesn't exist"
}

This change provides a simple API status response when accessing the deployed backend root URL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

After deploying backend on render.com error happens: "Api url doesn't exist"

1 participant