I have been trying to solve this problem for already weeks.
My code is working perfectly on localhost but was failing some tests when I tried submitting it by Replit.
@lasjorg helped me to pass some tests but it is still not working on one DELETE request. If you have any idea how to solve it or had the same problem I would appreciate the help.
My code links
GitHub: GitHub - sanarskiluka/anonymous-message-board