mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-28 03:49:22 +08: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:
+3
-3
@@ -411,7 +411,7 @@ The `description` property of any object in the `log` array that is returned fro
|
|||||||
```js
|
```js
|
||||||
async(getUserInput) => {
|
async(getUserInput) => {
|
||||||
const url = getUserInput('url');
|
const url = getUserInput('url');
|
||||||
const res = await fetch(url + '/api/users/', {
|
const res = await fetch(url + '/api/users', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'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
|
```js
|
||||||
async(getUserInput) => {
|
async(getUserInput) => {
|
||||||
const url = getUserInput('url');
|
const url = getUserInput('url');
|
||||||
const res = await fetch(url + '/api/users/', {
|
const res = await fetch(url + '/api/users', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'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
|
```js
|
||||||
async(getUserInput) => {
|
async(getUserInput) => {
|
||||||
const url = getUserInput('url');
|
const url = getUserInput('url');
|
||||||
const res = await fetch(url + '/api/users/', {
|
const res = await fetch(url + '/api/users', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
|
|||||||
Reference in New Issue
Block a user