#!flask/bin/python
from flask import Flask, request, jsonify
from flask_restful import Api
from tarefa_aps1 import TarefaPorId, Tarefas

app = Flask(__name__)
api = Api(app)

api.add_resource(TarefaPorId, '/tarefa/<int:id>')
api.add_resource(Tarefas, '/tarefa')

@app.route('/healthcheck')
def hc():
    return '',200

@app.route('/')
def index():
    return 'Teste', 200

if __name__ == '__main__':
    app.run('0.0.0.0',port=8080)