mirror of
https://github.com/Akomry/website.git
synced 2025-12-06 03:33:53 +00:00
minimal app
This commit is contained in:
commit
3d0cb9cc28
30 changed files with 3506 additions and 0 deletions
15
backend/app.py
Normal file
15
backend/app.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from flask import *
|
||||
from flask_restx import *
|
||||
|
||||
app = Flask(__name__)
|
||||
api = Api(app)
|
||||
|
||||
|
||||
@api.route('/')
|
||||
class Index(Resource):
|
||||
def get(self):
|
||||
data = {'message': 'Hello World!'}
|
||||
return data, 200
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True)
|
||||
2
backend/requirements.txt
Normal file
2
backend/requirements.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
flask
|
||||
flask_restx
|
||||
Loading…
Add table
Add a link
Reference in a new issue