Eurosmart commited on
Commit
aba1138
·
1 Parent(s): 4c82dd5
Files changed (3) hide show
  1. .gitignore +2 -1
  2. api/app.py +1 -0
  3. api/routes/testRoute.py +1 -1
.gitignore CHANGED
@@ -1,2 +1,3 @@
1
  venv/
2
- .env
 
 
1
  venv/
2
+ .env
3
+ __pycache__/
api/app.py CHANGED
@@ -6,5 +6,6 @@ app = Flask(__name__)
6
  from routes import *
7
 
8
  if __name__ == "__main__":
 
9
  http_server = WSGIServer(('', 7000), app)
10
  http_server.serve_forever()
 
6
  from routes import *
7
 
8
  if __name__ == "__main__":
9
+ print("Started API server")
10
  http_server = WSGIServer(('', 7000), app)
11
  http_server.serve_forever()
api/routes/testRoute.py CHANGED
@@ -1,5 +1,5 @@
1
  from app import app
2
  from flask import Flask, request, jsonify
3
- @app.route('/api', methods=["GET"])
4
  def testapi():
5
  return jsonify({'message': 'Test API success'})
 
1
  from app import app
2
  from flask import Flask, request, jsonify
3
+ @app.route('/', methods=["GET"])
4
  def testapi():
5
  return jsonify({'message': 'Test API success'})