mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
add GET /organisation and GET /organisation/id endpoints
This commit is contained in:
9
app/dao/organisation_dao.py
Normal file
9
app/dao/organisation_dao.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from app.models import Organisation
|
||||
|
||||
|
||||
def dao_get_organisations():
|
||||
return Organisation.query.all()
|
||||
|
||||
|
||||
def dao_get_organisation_by_id(org_id):
|
||||
return Organisation.query.filter_by(id=org_id).one()
|
||||
Reference in New Issue
Block a user