from sanic import Blueprint
from sanic_transmute import add_route
from .views import (
    get_all,
    get_status_by_country_id,
    get_status_by_country_name,
    get_deaths,
    get_active_cases,
    get_recovered_cases,
    get_confirmed_cases,
    list_countries,
)

cases = Blueprint("cases", url_prefix="/cases")
add_route(cases, get_all)
add_route(cases, get_status_by_country_id)
add_route(cases, get_status_by_country_name)
add_route(cases, get_deaths)
add_route(cases, get_active_cases)
add_route(cases, get_recovered_cases)
add_route(cases, get_confirmed_cases)
add_route(cases, list_countries)

[((281, 320), 'sanic.Blueprint', 'Blueprint', (['"""cases"""'], {'url_prefix': '"""/cases"""'}), "('cases', url_prefix='/cases')\n", (290, 320), False, 'from sanic import Blueprint\n'), ((321, 346), 'sanic_transmute.add_route', 'add_route', (['cases', 'get_all'], {}), '(cases, get_all)\n', (330, 346), False, 'from sanic_transmute import add_route\n'), ((347, 389), 'sanic_transmute.add_route', 'add_route', (['cases', 'get_status_by_country_id'], {}), '(cases, get_status_by_country_id)\n', (356, 389), False, 'from sanic_transmute import add_route\n'), ((390, 434), 'sanic_transmute.add_route', 'add_route', (['cases', 'get_status_by_country_name'], {}), '(cases, get_status_by_country_name)\n', (399, 434), False, 'from sanic_transmute import add_route\n'), ((435, 463), 'sanic_transmute.add_route', 'add_route', (['cases', 'get_deaths'], {}), '(cases, get_deaths)\n', (444, 463), False, 'from sanic_transmute import add_route\n'), ((464, 498), 'sanic_transmute.add_route', 'add_route', (['cases', 'get_active_cases'], {}), '(cases, get_active_cases)\n', (473, 498), False, 'from sanic_transmute import add_route\n'), ((499, 536), 'sanic_transmute.add_route', 'add_route', (['cases', 'get_recovered_cases'], {}), '(cases, get_recovered_cases)\n', (508, 536), False, 'from sanic_transmute import add_route\n'), ((537, 574), 'sanic_transmute.add_route', 'add_route', (['cases', 'get_confirmed_cases'], {}), '(cases, get_confirmed_cases)\n', (546, 574), False, 'from sanic_transmute import add_route\n'), ((575, 607), 'sanic_transmute.add_route', 'add_route', (['cases', 'list_countries'], {}), '(cases, list_countries)\n', (584, 607), False, 'from sanic_transmute import add_route\n')]