How to define public api in Redash?


@arikfr: How can I define public api in Redash v5?
In redash/handlers/ a new route : api.add_org_resource(PublicDashboardListResource, ‘/api/public/dashboards’, endpoint=‘public_dashboards’)

The above api returns proper response when i am logged in. When i am not logged in, it does not return data. It returns following response
method=GET path=/api/public/dashboards endpoint=public_dashboards status=302 content_type=text/html; charset=utf-8 content_length=345 duration=1.99 query_count=0 query_duration=0.00

Although the paths do not have @login_required or any other.


There was this thread time ago about it but it did not go anywhere.