Skeleton
This commit is contained in:
commit
8988f12a14
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.env/**
|
5
fleetcontrol
Normal file
5
fleetcontrol
Normal file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import flask
|
||||
|
||||
# vi: ft=python
|
0
network/__init__.py
Normal file
0
network/__init__.py
Normal file
13
network/communication.py
Normal file
13
network/communication.py
Normal 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
0
utils/__init__.py
Normal file
Loading…
Reference in New Issue
Block a user