🦠A simple and fast (< 200ms) API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak. It's written in python using the 🔥 FastAPI framework. Supports multiple sources!
Here I've added a singleton pattern on the service objects. I've done this by changing the LocationService implementation classes, so that they can only create one instance of the class, and in the data folder I adjusted so that the getInstance method is called instead of the constructor.
Here I've added a singleton pattern on the service objects. I've done this by changing the LocationService implementation classes, so that they can only create one instance of the class, and in the data folder I adjusted so that the getInstance method is called instead of the constructor.