

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Storage
incomplete
2: Drizzle ORM
incomplete
3: Drizzle Queries
incomplete
4: Automatic Migrations
incomplete
5: Database Review
incomplete
6: Create User
incomplete
7: Create Chirp
incomplete
8: Collections and Singletons
incomplete
9: Get All Chirps
incomplete
10: Get Chirp
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
We've written the SQL query, now it's time to write the API handler that will allow users to create a new user.
Request:
{
"email": "[email protected]"
}
Response:
HTTP 201 Created
{
"id": "50746277-23c6-4d85-a890-564c0044c2fb",
"email": "[email protected]",
"createdAt": "2021-07-07T00:00:00Z",
"updatedAt": "2021-07-07T00:00:00Z"
}
This ensures that this extremely dangerous endpoint can only be accessed in a local development environment.
Run and submit the CLI tests.