- class tiled.query_registration.QueryRegistry¶
Keep track of all known queries types, with names.
When the server starts up, it uses this registry to populate the list of allowed URL query parameters to its /search route.
There is a global instance of this, defined below. It is implemented as a class, rather than a module-scope singleton, for the sake of tests.
register([name, overwrite, must_revalidate])
Register a new type of query.