Edited: backend.py

Added basic "hello world" get request
main
Anorak_1 2022-10-30 16:24:08 +01:00
parent df16921a3c
commit c6b17306d9
1 changed files with 15 additions and 1 deletions

View File

@ -1 +1,15 @@
# Init
from flask import Flask
from flask_restful import Resource, Api
app = Flask("LeaderAPI")
api = Api(app)
class LeaderAPI(Resource):
def get(self):
return "Hello world!"
api.add_resource(LeaderAPI, "/")
if __name__ == "__main__":
app.run()