This commit is contained in:
Wojciech Janota 2022-10-07 13:56:49 +02:00
commit 8988f12a14
5 changed files with 19 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.env/**

5
fleetcontrol Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/python3
import flask
# vi: ft=python

0
network/__init__.py Normal file
View File

13
network/communication.py Normal file
View File

@ -0,0 +1,13 @@
from flask import Flask
class Server(host, port, name, access_password, version):
app = Flask(self.name)
@app.route("/")
def basic_server_data(self):
return {"server_name": self.name, "server_version": self.version, "host": self.host}
@app.route("/client/register")
def register_new_client_to_database(self):
# TODO: implement

0
utils/__init__.py Normal file
View File