# Path: countylimits/views.py
# @api_view(["GET"])
# def county_limits(request):
#     """Return all counties with their limits per state."""
#     if request.method == "GET":
#         package = {"request": {}, "data": []}
#         if "state" in request.GET:
#             state = request.GET["state"]
#             if state in SAFE_STATE_LIST:
#                 data = CountyLimit.county_limits_by_state(state)
#                 package["request"]["state"] = state
#                 package["data"] = data
#                 return Response(package)
#             else:
#                 return Response(
#                     {"state": "Invalid state"},
#                     status=status.HTTP_400_BAD_REQUEST,
#                 )
#         else:
#             return Response(
#                 {"detail": "Required parameter state is missing"},
#                 status=status.HTTP_400_BAD_REQUEST,
#             )


from countylimits.views import county_limits
    from django.urls import re_path
    from django.conf.urls import url as re_path


try:
except ImportError:


urlpatterns = [

# Path: countylimits/views.py
# @api_view(["GET"])
# def county_limits(request):
#     """Return all counties with their limits per state."""
#     if request.method == "GET":
#         package = {"request": {}, "data": []}
#         if "state" in request.GET:
#             state = request.GET["state"]
#             if state in SAFE_STATE_LIST:
#                 data = CountyLimit.county_limits_by_state(state)
#                 package["request"]["state"] = state
#                 package["data"] = data
#                 return Response(package)
#             else:
#                 return Response(
#                     {"state": "Invalid state"},
#                     status=status.HTTP_400_BAD_REQUEST,
#                 )
#         else:
#             return Response(
#                 {"detail": "Required parameter state is missing"},
#                 status=status.HTTP_400_BAD_REQUEST,
#             )


# Path: countylimits/urls.py
from countylimits.views import county_limits
    from django.urls import re_path
    from django.conf.urls import url as re_path



try:
except ImportError:


urlpatterns = [

    re_path(r"^$", county_limits, name="county_limits"),