ExpDev07 / coronavirus-tracker-api

🦠 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!
https://coronavirus-tracker-api.herokuapp.com
GNU General Public License v3.0
1.59k stars 323 forks source link

add structural pattern #485

Closed lilywuyanru closed 3 years ago

lilywuyanru commented 3 years ago

add structural pattern

it is accomplished by adding a LocationServiceAdaptor. By passing in the corresponding LocationService object based on source, it will call the corresponding methods of that object to get the locations.