Hi @rickhurlbatt,
You have actually stumbled across an unreleased feature, which is fully implemented and supported, but not yet documented. Here is what you’re looking for:
@anvil.server.wellknown_endpoint("/assetlinks.json")
def assetlinks():
return ["assetlinks", "json", "goes", "here"]
We’ll be releasing the autocompletion and documentation for this soon, but the summary is that this wellknown_endpoint
decorator works exactly like the http_endpoint
decorator, but the endpoints you configure land under /.well-known
instead of under /_/api
.
Right now this is only supported in Full Python 3 and Python 3.10 server runtimes.
I hope that helps!