Last active
September 7, 2018 17:50
-
-
Save king724/3388027b4a3b6791c24429e902993113 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from flask import Flask, Response | |
from metrics import setup_metrics | |
app = Flask(__name__) | |
setup_metrics(app) | |
@app.route('/test/') | |
def test(): | |
""" | |
Test API endpoint | |
""" | |
return 'My first REST API’ | |
if __name__ == '__main__': | |
app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment