Commit a0d895b6 authored by Anthony Jacob's avatar Anthony Jacob
Browse files

add home route with welcome message instead of 404

parent 6582f469
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -68,6 +68,10 @@ Disallow: /
"""
    return Response(content, mimetype='text/plain')

@app.route('/')
def home():
     return jsonify(message="Welcome to anthony-jacob.com API, no documentation... but Postman collection https://gitlab.anthony-jacob.com/anthony.jacob/api/-/blob/main/API.postman_collection.json?ref_type=heads  ;) "), 200

# app.register_blueprint(diploma.diploma_bp, url_prefix='/diploma')
app.register_blueprint(diploma.diploma_bp)