Skip to content

Commit

Permalink
deprecating unused status endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkDWilliams committed Jun 20, 2024
1 parent 3981e8e commit c6b45be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions tr_sys/tr_ars/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,11 +787,7 @@ def answers(req, key):
except Message.DoesNotExist:
return HttpResponse('Unknown message: %s' % key, status=404)

@csrf_exempt
def status(req):
if req.method == 'GET':
return HttpResponse(json.dumps(status_report.status(req), indent=2),
content_type='application/json', status=200)

@csrf_exempt
def timeoutTest(req,time=300):
if req.method == 'POST':
Expand Down Expand Up @@ -888,7 +884,6 @@ def post_process(req, key):
path('messages/<uuid:key>', message, name='ars-message'),
re_path(r'^filters/?$', filters, name='ars-filters'),
path('filter/<uuid:key>', filter, name='ars-filter'),
re_path(r'^status/?$', status, name='ars-status'),
path('reports/<inforesid>',get_report,name='ars-report'),
re_path(r'^timeoutTest/?$', timeoutTest, name='ars-timeout'),
path('merge/<uuid:key>', merge, name='ars-merge'),
Expand Down
1 change: 0 additions & 1 deletion tr_sys/tr_ars/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
re_path(r'^filters/?$', api.filters, name='ars-filters'),
path('filter/<uuid:key>', api.filter, name='ars-filter'),
path('reports/<inforesid>',api.get_report,name='ars-report'),
re_path(r'^status/?$', api.status, name='ars-status'),
re_path(r'^timeoutTest/?$', api.timeoutTest, name='ars-timeout'),
path('merge/<uuid:key>', api.merge, name='ars-merge'),
path('retain/<uuid:key>', api.retain, name='ars-retain'),
Expand Down

0 comments on commit c6b45be

Please sign in to comment.