mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
Fix broken api
This commit is contained in:
parent
c070651a8d
commit
7772a13834
1 changed files with 2 additions and 2 deletions
|
@ -95,14 +95,14 @@ def available(request, domain=""):
|
|||
@login_not_required
|
||||
def get_current_full(request):
|
||||
# Open the CSV file
|
||||
file_path = '../migrationdata/current-full.csv'
|
||||
file_path = 'migrationdata/current-full.csv'
|
||||
return serve_file(file_path)
|
||||
|
||||
@require_http_methods(["GET"])
|
||||
@login_not_required
|
||||
def get_current_federal(request):
|
||||
# Open the CSV file
|
||||
file_path = '../migrationdata/current-federal.csv'
|
||||
file_path = 'migrationdata/current-federal.csv'
|
||||
return serve_file(file_path)
|
||||
|
||||
def serve_file(file_path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue