Description
The route for posting openings is defined twice:
- In
app/routers/dashboard.py as POST /faculty/opening
- In
app/routers/openings.py as POST / (under prefix /openings)
This duplication leads to code drift and redundant database queries.
Expected Behavior
The duplicate route in dashboard.py should be removed, and the frontend should use the unified openings router endpoint.
Description
The route for posting openings is defined twice:
app/routers/dashboard.pyasPOST /faculty/openingapp/routers/openings.pyasPOST /(under prefix/openings)This duplication leads to code drift and redundant database queries.
Expected Behavior
The duplicate route in
dashboard.pyshould be removed, and the frontend should use the unified openings router endpoint.