Remove system.py

Updates to deployed API are to be handled manually.
This commit is contained in:
Riley Housden 2021-12-01 02:34:16 -05:00
parent 7a5d303aec
commit 9181456fef
Signed by: InValidFire
GPG Key ID: 0D6208F6DF56B4D8
1 changed files with 0 additions and 15 deletions

View File

@ -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)