mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
fix: methods incorrect type and update deprecated targets (#23935)
This commit is contained in:
committed by
GitHub
parent
841726d432
commit
694f93326d
@@ -49,7 +49,7 @@ class ExplorePermalinkRestApi(BaseSupersetApi):
|
||||
openapi_spec_tag = "Explore Permanent Link"
|
||||
openapi_spec_component_schemas = (ExplorePermalinkPostSchema,)
|
||||
|
||||
@expose("/permalink", methods=["POST"])
|
||||
@expose("/permalink", methods=("POST",))
|
||||
@protect()
|
||||
@safe
|
||||
@statsd_metrics
|
||||
@@ -110,7 +110,7 @@ class ExplorePermalinkRestApi(BaseSupersetApi):
|
||||
except (ChartNotFoundError, DatasetNotFoundError) as ex:
|
||||
return self.response(404, message=str(ex))
|
||||
|
||||
@expose("/permalink/<string:key>", methods=["GET"])
|
||||
@expose("/permalink/<string:key>", methods=("GET",))
|
||||
@protect()
|
||||
@safe
|
||||
@statsd_metrics
|
||||
|
||||
Reference in New Issue
Block a user