parent
df16921a3c
commit
c6b17306d9
16
backend.py
16
backend.py
|
@ -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()
|
Loading…
Reference in New Issue