Add endpoint for creating local contacts with access control

Introduced a new `local_contact_router` to handle creation of local contacts. The endpoint enforces role-based access control and ensures no duplication of email addresses. Updated the router exports for consistency and cleaned up a large test file to improve readability.
This commit is contained in:
GotthardG
2025-02-26 09:58:19 +01:00
parent 43d67b1044
commit f588bc0cda
13 changed files with 360 additions and 418 deletions

View File

@ -9,6 +9,8 @@ from .data import (
dewar_types,
serial_numbers,
sample_events,
local_contacts,
beamtimes,
)
from .slots_data import slots
@ -24,4 +26,6 @@ __all__ = [
"serial_numbers",
"sample_events",
"slots",
"local_contacts",
"beamtimes",
]