mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
Remove wildcard from api endpoint documentation
This commit is contained in:
parent
3eade5abeb
commit
dfc67e66fb
|
@ -239,6 +239,9 @@ class EndpointInspector(object):
|
||||||
if path.endswith('.{format}') or path.endswith('.{format}/'):
|
if path.endswith('.{format}') or path.endswith('.{format}/'):
|
||||||
return False # Ignore .json style URLs.
|
return False # Ignore .json style URLs.
|
||||||
|
|
||||||
|
if path.endswith('.*'):
|
||||||
|
return False # Ignore wildcard URLs.
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def get_allowed_methods(self, callback):
|
def get_allowed_methods(self, callback):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user