mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
API is only available to logged-in users
This commit is contained in:
parent
01553a4d91
commit
7e02661416
2 changed files with 13 additions and 2 deletions
|
@ -1,9 +1,13 @@
|
|||
"""Internal API views"""
|
||||
|
||||
|
||||
from django.views.decorators.http import require_http_methods
|
||||
from django.http import JsonResponse
|
||||
|
||||
from django.contrib.auth.decorators import login_required
|
||||
|
||||
@require_http_methods(["GET"])
|
||||
@login_required
|
||||
def available(request, domain=""):
|
||||
|
||||
"""Is a given domain available or not.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue