Frontend WIP - just websocket support left
This commit is contained in:
@@ -15,8 +15,8 @@ Future<Response> onRequest(RequestContext context) async {
|
||||
|
||||
try {
|
||||
// Parse the request body
|
||||
final body = await context.request.json() as Map<String, dynamic>;
|
||||
final createUserReq = CreateUserRequest.fromJson(body);
|
||||
final body = await context.request.json();
|
||||
final createUserReq = CreateUserRequest.fromJson(body as Map<String, dynamic>);
|
||||
|
||||
// Generate token
|
||||
final authenticator = context.read<Authenticator>();
|
||||
|
||||
Reference in New Issue
Block a user