#
# from aiohttp import web, request
# # import jsona
#
# def setup_routes(app) -> None:
#     app.router.add_view(r"/v1/chats", views.Chat)
#     app.router.add_view(r"/v1/chats/", views.Chat)
#
#     app.router.add_view(r"/v1/chats/{chat_id}/users", views.User)
#     app.router.add_view(r"/v1/chats/{chat_id}/users/", views.User)
#
#     app.router.add_view(r"/v1/chats/{chat_id}/messages", views.Message)
#     app.router.add_view(r"/v1/chats/{chat_id}/messages/", views.Message)
#
#     app.router.add_view(r'/v1/autorisation' , views.Autorisation)
#     app.router.add_view(r'/v1/autorisation/' , views.Autorisation)
#
