Use current_app
Document behaviour for query param