mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Added a one off command to add many invited user to a service.
It would be nice to add something that can do this from the Admin app.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import json
|
||||
|
||||
from flask import (
|
||||
Blueprint,
|
||||
request,
|
||||
@@ -24,6 +26,8 @@ register_errors(invite)
|
||||
@invite.route('', methods=['POST'])
|
||||
def create_invited_user(service_id):
|
||||
request_json = request.get_json()
|
||||
# request_json = request.data
|
||||
print(request_json)
|
||||
invited_user, errors = invited_user_schema.load(request_json)
|
||||
save_invited_user(invited_user)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user