Skip to content

Fix #133: Add root route to fix 404 error on backend root URL#248

Closed
ChinmayShringi wants to merge 1 commit intomainfrom
upstream/main-188
Closed

Fix #133: Add root route to fix 404 error on backend root URL#248
ChinmayShringi wants to merge 1 commit intomainfrom
upstream/main-188

Conversation

@ChinmayShringi
Copy link
Owner

Problem

When accessing the backend at 0.0.0.0:5001, users receive a 404 error. This is confusing because the server appears to start successfully but the root URL returns nothing.

Solution

Added a root route (/) that returns:

  • Service name and status
  • Available endpoints information
  • API route prefixes

Changes

  • Modified backend/app/__init__.py to add an @app.route('/') endpoint

Testing

The root endpoint now returns:

{
  "service": "MiroFish Backend",
  "status": "running",
  "version": "1.0.0",
  "endpoints": {
    "health": "/health",
    "api": {
      "graph": "/api/graph",
      "simulation": "/api/simulation",
      "report": "/api/report"
    }
  }
}

Fixes #133


Original PR: 666ghj/MiroFish#188
Original Author: @hkc5

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.

Alibaba Cloud Bailian API call error: Paid plan non-Qwen models and LLM API relay stations all fail

1 participant