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)

[((14, 8, 14, 47), 'sanic.Blueprint', 'Blueprint', (), '', False, 'from sanic import Blueprint\n'), ((15, 0, 15, 25), 'sanic_transmute.add_route', 'add_route', ({(15, 10, 15, 15): 'cases', (15, 17, 15, 24): 'get_all'}, {}), '(cases, get_all)', False, 'from sanic_transmute import add_route\n'), ((16, 0, 16, 42), 'sanic_transmute.add_route', 'add_route', ({(16, 10, 16, 15): 'cases', (16, 17, 16, 41): 'get_status_by_country_id'}, {}), '(cases, get_status_by_country_id)', False, 'from sanic_transmute import add_route\n'), ((17, 0, 17, 44), 'sanic_transmute.add_route', 'add_route', ({(17, 10, 17, 15): 'cases', (17, 17, 17, 43): 'get_status_by_country_name'}, {}), '(cases, get_status_by_country_name)', False, 'from sanic_transmute import add_route\n'), ((18, 0, 18, 28), 'sanic_transmute.add_route', 'add_route', ({(18, 10, 18, 15): 'cases', (18, 17, 18, 27): 'get_deaths'}, {}), '(cases, get_deaths)', False, 'from sanic_transmute import add_route\n'), ((19, 0, 19, 34), 'sanic_transmute.add_route', 'add_route', ({(19, 10, 19, 15): 'cases', (19, 17, 19, 33): 'get_active_cases'}, {}), '(cases, get_active_cases)', False, 'from sanic_transmute import add_route\n'), ((20, 0, 20, 37), 'sanic_transmute.add_route', 'add_route', ({(20, 10, 20, 15): 'cases', (20, 17, 20, 36): 'get_recovered_cases'}, {}), '(cases, get_recovered_cases)', False, 'from sanic_transmute import add_route\n'), ((21, 0, 21, 37), 'sanic_transmute.add_route', 'add_route', ({(21, 10, 21, 15): 'cases', (21, 17, 21, 36): 'get_confirmed_cases'}, {}), '(cases, get_confirmed_cases)', False, 'from sanic_transmute import add_route\n'), ((22, 0, 22, 32), 'sanic_transmute.add_route', 'add_route', ({(22, 10, 22, 15): 'cases', (22, 17, 22, 31): 'list_countries'}, {}), '(cases, list_countries)', False, 'from sanic_transmute import add_route\n')]