MCPcopy Create free account
hub / github.com/bbachi/react-dotnet-example / createUser

Function createUser

ClientApp/src/services/UserService.js:7–14  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

5}
6
7export async function createUser(data) {
8 const response = await fetch(`/api/user`, {
9 method: 'POST',
10 headers: {'Content-Type': 'application/json'},
11 body: JSON.stringify(data)
12 })
13 return await response.json();
14}

Callers 1

AppClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected