Change default endpoint from / to /metrics

This commit is contained in:
rasmus 2020-12-23 08:05:40 +02:00
parent ac5f2fe3e4
commit 9d46bb55da
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ PREFIX = os.getenv('PREFIX','bladetest_')
### FLASK ###
app = Flask(__name__)
@app.route('/', methods=['GET'])
@app.route('/metrics', methods=['GET'])
def parse_request(): # If somebody accesses us
data = scraperMain.scraperMain(hostname, encname, sshkeypath) # Gather up, we're going to wait a few minutes on the data.