mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Check IP address source
This commit is contained in:
@@ -57,6 +57,10 @@ def show_delivery_status():
|
|||||||
db_version=get_db_version()), 200
|
db_version=get_db_version()), 200
|
||||||
|
|
||||||
|
|
||||||
|
@status.route('/_check_IP_source')
|
||||||
|
def show_check_IP_source():
|
||||||
|
return jsonify({'ip': request.headers.getlist("X-Forwarded-For")}), 200
|
||||||
|
|
||||||
def get_db_version():
|
def get_db_version():
|
||||||
try:
|
try:
|
||||||
query = 'SELECT version_num FROM alembic_version'
|
query = 'SELECT version_num FROM alembic_version'
|
||||||
|
|||||||
Reference in New Issue
Block a user