Endpoint for recording events in api.

An event has an id, a type and a blob of json attached.
This commit is contained in:
Adam Shimali
2016-04-27 10:27:05 +01:00
parent bca61454f3
commit dacbbfbf2f
10 changed files with 130 additions and 2 deletions

6
app/dao/events_dao.py Normal file
View File

@@ -0,0 +1,6 @@
from app import db
def dao_create_event(event):
db.session.add(event)
db.session.commit()