from core import App, Response

application = App()


@application.route('/echo')
def echo(request):
    body = {
        'method': request['REQUEST_METHOD'],
        'path': request['PATH_INFO'],
    }
    return Response(json=body)

from core import App, Response

application = App()


@application.route('/echo')
def echo(request):
    body = {
        'method': request['REQUEST_METHOD'],
        'path': request['PATH_INFO'],
    }
    return Response(json=body)
