|
|
@ -8,6 +8,7 @@ from time import time |
|
|
|
from pydantic import BaseModel |
|
|
|
from RCONPlayerModel import * |
|
|
|
import traceback |
|
|
|
import logging |
|
|
|
|
|
|
|
class A2S_request(BaseModel): |
|
|
|
server: str = None |
|
|
@ -41,6 +42,7 @@ class SourceBackend: |
|
|
|
|
|
|
|
def run(self, host = "0.0.0.0", port = 45353): |
|
|
|
import uvicorn |
|
|
|
logging.getLogger("uvicorn.info").disabled = True |
|
|
|
uvicorn.run(self.app, host = host, port = port) |
|
|
|
|
|
|
|
def setup_routes(self): |
|
|
|