Skip to content

refactor: remove unused app/routes/main.py (duplicate of web.py root route)#72

Open
Perfect29 wants to merge 1 commit intosugarlabs:mainfrom
Perfect29:refactor/remove-dead-main-route
Open

refactor: remove unused app/routes/main.py (duplicate of web.py root route)#72
Perfect29 wants to merge 1 commit intosugarlabs:mainfrom
Perfect29:refactor/remove-dead-main-route

Conversation

@Perfect29
Copy link
Contributor

app/routes/main.py defines a GET / route, but create_app() never imports or includes it.
The actual root route comes from app/routes/web.py, which is included. So main.py is dead code.

  • grep -r "routes.main" app/ → no results
  • create_app() in app/__init__.py only includes web_router
  • Server starts fine and GET / still works after deletion

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.

1 participant