Skip to content

Chore: Remove unused apis/ directory and Test model#13

Open
rakshityadav1868 wants to merge 1 commit into
ruxailab:mainfrom
rakshityadav1868:remove-dead-apis-code
Open

Chore: Remove unused apis/ directory and Test model#13
rakshityadav1868 wants to merge 1 commit into
ruxailab:mainfrom
rakshityadav1868:remove-dead-apis-code

Conversation

@rakshityadav1868
Copy link
Copy Markdown
Contributor

Description

Remove dead code from the app/apis/ directory that is completely unused in the application.

Problem

The app/apis/ directory contains incomplete, unreachable code that:

  • Not imported in main.py
  • Not registered with app.include_router()
  • Unreachable via API (returns 404 Not Found)
  • Incomplete implementation (no persistence, no error handling, no validation)
  • Confusing for new developers

Solution

Removed all dead code files and the unused Test model.

Files Removed

  • app/apis/routes.py - Unused GET/POST /test endpoints
  • app/apis/controllers.py - In-memory test storage with getTest/addTest functions
  • app/apis/fetcher.py - Unused fetch_router that was never registered
  • app/models/schema.py - Removed unused Test model class (only used by deleted apis/)

Evidence

Screenshot 2026-03-14 at 10 06 38 PM

Can see that the endpoint is not registered or accessible

Signed-off-by: Rakshit Yadav <yadavrakshit60@gmail.com>
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