restructured the api

This commit is contained in:
iritmaximus
2023-01-20 13:00:05 +02:00
parent 025d3abf42
commit 53f4eb8b6f
6 changed files with 31 additions and 0 deletions
View File
+4
View File
@@ -6,3 +6,7 @@ app = Flask(__name__)
@app.route("/") @app.route("/")
def test(): def test():
return "This is the familytree backend" return "This is the familytree backend"
if __name__ == "__main__":
app.run(debug=True)
View File
+11
View File
@@ -0,0 +1,11 @@
from app import app
@app.route("/familytree")
def familytree():
return "All of the familytree things"
@app.route("/familytree/add")
def add_member_familytree():
return "New member to the familytree"
View File
+16
View File
@@ -0,0 +1,16 @@
from app import app
@app.route("/login")
def login():
return "Login to the site"
@app.route("/user")
def user():
return "Account information"
@app.route("/users/create")
def create_user():
return "New user"