mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 08:51:30 -05:00
Endpoint for recording events in api.
An event has an id, a type and a blob of json attached.
This commit is contained in:
6
app/dao/events_dao.py
Normal file
6
app/dao/events_dao.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from app import db
|
||||
|
||||
|
||||
def dao_create_event(event):
|
||||
db.session.add(event)
|
||||
db.session.commit()
|
||||
Reference in New Issue
Block a user