# Path: boiler/routes/route.py
# def route(view, endpoint=None, methods=None, defaults=None, **options):
#     """
#     Route: a shorthand for route declaration
#     Import and use it in your app.urls file by calling:
#         url['/path/to/view'] = route('module.views.view', 'route_name')
#     """
#     if not endpoint:
#         endpoint = view
#     if not methods:
#         methods = ['GET']
#     return dict(
#         view_func=LazyView(view),
#         endpoint=endpoint,
#         methods=methods,
#         defaults=defaults,
#         **options
#     )


from boiler.routes.route import route
"""
A note on URLs: please define your URLS with a trailing slash (unless it has
an extension of course)! This way they will work both with and without trailing
slash. If it's missing - Flask will just add it.

"""

urls = dict()

# Path: boiler/routes/route.py
# def route(view, endpoint=None, methods=None, defaults=None, **options):
#     """
#     Route: a shorthand for route declaration
#     Import and use it in your app.urls file by calling:
#         url['/path/to/view'] = route('module.views.view', 'route_name')
#     """
#     if not endpoint:
#         endpoint = view
#     if not methods:
#         methods = ['GET']
#     return dict(
#         view_func=LazyView(view),
#         endpoint=endpoint,
#         methods=methods,
#         defaults=defaults,
#         **options
#     )


# Path: boiler/boiler_template/backend/urls.py
from boiler.routes.route import route

"""
A note on URLs: please define your URLS with a trailing slash (unless it has
an extension of course)! This way they will work both with and without trailing
slash. If it's missing - Flask will just add it.

"""

urls = dict()

urls['/'] = route('backend.views.home', 'home')