From 9181456fef256b6f4373d56a6ff6ef6c910e0405 Mon Sep 17 00:00:00 2001 From: Riley Housden Date: Wed, 1 Dec 2021 02:34:16 -0500 Subject: [PATCH] Remove system.py Updates to deployed API are to be handled manually. --- routers/system.py | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 routers/system.py diff --git a/routers/system.py b/routers/system.py deleted file mode 100644 index 165592c..0000000 --- a/routers/system.py +++ /dev/null @@ -1,15 +0,0 @@ -import sys - -from fastapi import APIRouter, Depends -from fastapi.security.api_key import APIKey - -import subprocess -from .security import get_system_key - -router = APIRouter() - - -@router.post("/system/update") -def update(access_token: APIKey = Depends(get_system_key)): - output = subprocess.check_output(['git', 'pull'], encoding='utf-8') - sys.exit(4)