[fix] a bug
This commit is contained in:
parent
2a3c35a55c
commit
eee79c4599
5
app.py
5
app.py
@ -1,11 +1,14 @@
|
||||
from aioflask import Flask
|
||||
from aioflask import request
|
||||
from aioflask import jsonify
|
||||
|
||||
from ci import app as bot
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
|
||||
@app.route("/", methods=['GET', 'POST'])
|
||||
async def webhook(request):
|
||||
async def webhook():
|
||||
data = request.json
|
||||
# json contains an attribute that differentiates between the types, see
|
||||
# https://docs.gitlab.com/ce/user/project/integrations/webhooks.html
|
||||
|
Loading…
Reference in New Issue
Block a user