crmSaaS / timetable-app

This is a simple timetable web app built with HTML, CSS, JavaScript, and Node.js (Express). It allows users to manage weekly schedules, add, edit, and delete tasks or classes, and view an organized timetable. This project is also Hacktoberfest-ready, with 30 beginner-friendly issues for contributors to tackle and learn from.
0 stars 12 forks source link

Refactor /add Endpoint to Use validDays Set for Day Validation #68

Open suhanik016 opened 3 days ago

suhanik016 commented 3 days ago

The /add endpoint contains redundant hard-coded checks for validating the day field. These can be replaced with a single call to the validDays set, simplifying the code and improving maintainability.