<reponame>gitter-badger/turbulette
from starlette.responses import JSONResponse
from starlette.routing import Route
from turbulette.routes import csrf


async def welcome(request):
    return JSONResponse({"welcome": "welcome to the library"})


routes = [
    Route("/csrf", endpoint=csrf),
    Route("/welcome", endpoint=welcome, methods=["GET", "POST"]),
]

from starlette.responses import JSONResponse
from starlette.routing import Route
from turbulette.routes import csrf


async def welcome(request):
    return JSONResponse({"welcome": "welcome to the library"})


routes = [
    Route("/csrf", endpoint=csrf),
    Route("/welcome", endpoint=welcome, methods=["GET", "POST"]),
]