mirror of
https://github.com/iritmaximus/timetrials.git
synced 2026-10-12 19:13:48 +03:00
restructured the api
This commit is contained in:
@@ -6,3 +6,7 @@ app = Flask(__name__)
|
||||
@app.route("/")
|
||||
def test():
|
||||
return "This is the familytree backend"
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True)
|
||||
@@ -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"
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user