Anvil routes redirect to a custom 404 page

My guess is that the correct answer is part of Meredydd’s Watch this space.

I haven’t seen the star syntax in the documentation and examples.
Have you tried with something like:

@anvil.server.route("/:x")
@anvil.server.route("/:x/:y")
@anvil.server.route("/:x/:y/:z")
def four_o_four(email, **p):
    return anvil.server.HttpResponse(404, "Oopsie")

Mmmh…
Now I’m wondering what happens if you have two conflicting routes?

2 Likes