Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Remove or replace unused favorites API and middleware code

Closed Beginner friendly
#281 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
next.js, typescript

Research direction

Read src/services/api.tsx and middleware.ts, then search the codebase for references to the three favorites helpers and the /user/favorites matcher. Remove the unused helpers and update the matcher; done when no obsolete favorites API or middleware references remain and the remaining timetable routes are still protected as intended.

Written by the indexing model from the issue text.

Description

src/services/api.tsx contains getFavourites, deleteFavourite, and renameFavourite that call /api/user/favorites. This route no longer exists (timetables now use /saved and /api/timetables). middleware.ts is also still protecting /user/favorites, and no files in the codebase import these functions.
What needs to be done:

  • Delete unused favorites API helpers and update middleware.ts matchers.
    Files:
  • src/services/api.tsx
  • middleware.ts
Dominant language
TypeScript
Stars
6
Forks
27
Avg merge
1d 8h
Merged PRs (30d)
14

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CodeChefVIT/ffcs

All issues in CodeChefVIT/ffcs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.