mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-24 19:00:16 -04:00
fix(curriculum): Exercise Tracker - Create user URL - remove trailing slash (#48970)
fix(curriculum): create user URL in exercise tracker
This commit is contained in:
@@ -411,7 +411,7 @@ The `description` property of any object in the `log` array that is returned fro
|
||||
```js
|
||||
async(getUserInput) => {
|
||||
const url = getUserInput('url');
|
||||
const res = await fetch(url + '/api/users/', {
|
||||
const res = await fetch(url + '/api/users', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
@@ -458,7 +458,7 @@ The `duration` property of any object in the `log` array that is returned from `
|
||||
```js
|
||||
async(getUserInput) => {
|
||||
const url = getUserInput('url');
|
||||
const res = await fetch(url + '/api/users/', {
|
||||
const res = await fetch(url + '/api/users', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
@@ -505,7 +505,7 @@ The `date` property of any object in the `log` array that is returned from `GET
|
||||
```js
|
||||
async(getUserInput) => {
|
||||
const url = getUserInput('url');
|
||||
const res = await fetch(url + '/api/users/', {
|
||||
const res = await fetch(url + '/api/users', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
|
||||
Reference in New Issue
Block a user