Routing: matching an arbitrary path


I want to serve URLs like


through one endpoint registered for the route /content.

How can I much arbitrary sub paths after /content?


When creating the routes, there is a path type and a custom regex that can be used to match some patterns.

def method(request, custom_path, pdf):
    return json({
        "path": custom_path,
        "pdf": pdf