Switch backend to proper HTTP framework
I noticed the server uses ThreadingHTTPServer
directly. Please consider switching it to proper framework like FastAPI, which will also get you proper data validation with pydantic.
I also recommend using PostgreSQL for storing data instead of filesystem. We can set up a database if you wish.