mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-04-28 13:03:45 +03:00
Update docs/topics/browsable-api.md
This commit is contained in:
parent
54884a53aa
commit
bf77df6d39
|
@ -20,7 +20,7 @@ By default, the API will return the format specified by the headers, which in th
|
||||||
To quickly add authentication to the browesable api, add a routes named `"login"` and `"logout"` under the namespace `"rest_framework"`. DRF provides default routes for this which you can add to your urlconf:
|
To quickly add authentication to the browesable api, add a routes named `"login"` and `"logout"` under the namespace `"rest_framework"`. DRF provides default routes for this which you can add to your urlconf:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from django.urls import include, re_path
|
from django.urls import include, path
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
# ...
|
# ...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user