Files
resumeeval/__init__.py
T
2020-12-12 13:28:46 -05:00

31 lines
799 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Importing flask module in the project is mandatory
# An object of Flask class is our WSGI application.
from flask import Flask, request
# Flask constructor takes the name of
# current module (__name__) as argument.
app = Flask(__name__)
# The route() function of the Flask class is a decorator,
# which tells the application which URL should call
# the associated function.
@app.route('/')
# / URL is bound with hello_world() function.
def hello_world():
return 'Hello World'
@app.route('/resume/score', methods=['GET'])
def get_resume_score():
print(request.data)
return request.data
# main driver function
if __name__ == '__main__':
# run() method of Flask class runs the application
# on the local development server.
app.run()