mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-06 17:15:38 -08:00
BE: link to server in reports #1267, new /tmp/api path for SYNC plugin
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
@@ -26,8 +26,8 @@
|
||||
<tr>
|
||||
<td width=50% style="text-align:center;color: white;" bgcolor="#3c8dbc">
|
||||
NEW_VERSION
|
||||
| Sent: REPORT_DATE
|
||||
| Server: <a href="REPORT_DASHBOARD_URL" target="_blank" style="color:#ffffff;">SERVER_NAME</a>
|
||||
| Sent: REPORT_DATE
|
||||
| Server: <a href="REPORT_DASHBOARD_URL" target="_blank" style="color:#ffffff;">SERVER_NAME</a>
|
||||
| Built: BUILD_DATE
|
||||
| Version: BUILD_VERSION
|
||||
</td>
|
||||
|
||||
@@ -11,7 +11,11 @@ INSTALL_PATH = os.getenv("NETALERTX_APP", "/app")
|
||||
|
||||
def handle_sync_get():
|
||||
"""Handle GET requests for SYNC (NODE → HUB)."""
|
||||
file_path = INSTALL_PATH + "/api/table_devices.json"
|
||||
|
||||
# get all dwevices from the api endpoint
|
||||
api_path = os.environ.get('NETALERTX_API', '/tmp/api')
|
||||
|
||||
file_path = f"/{api_path}/table_devices.json"
|
||||
|
||||
try:
|
||||
with open(file_path, "rb") as f:
|
||||
|
||||
Reference in New Issue
Block a user