Skip to content

Commit

Permalink
[dashboard] fix, enable info endpoint (#9015)
Browse files Browse the repository at this point in the history
* [dashboard] fix, enable info endpoint

* add info to REST_MODEL_VIEW_CRUD_SET
  • Loading branch information
nytai authored and Erik Ritter committed Jan 25, 2020
1 parent 922eec2 commit c552c85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class RouteMethod: # pylint: disable=too-few-public-methods
EDIT = "edit"
LIST = "list"
SHOW = "show"
INFO = "info"

# RestModelView specific
EXPORT = "export"
Expand All @@ -58,4 +59,4 @@ class RouteMethod: # pylint: disable=too-few-public-methods
# Commonly used sets
CRUD_SET = {ADD, LIST, EDIT, DELETE, ACTION_POST}
RELATED_VIEW_SET = {ADD, LIST, EDIT, DELETE}
REST_MODEL_VIEW_CRUD_SET = {DELETE, GET, GET_LIST, POST, PUT}
REST_MODEL_VIEW_CRUD_SET = {DELETE, GET, GET_LIST, POST, PUT, INFO}

0 comments on commit c552c85

Please sign in to comment.