fix(curriculum): Exercise Tracker - Create user URL - remove trailing slash (#48970)

fix(curriculum): create user URL in exercise tracker
This commit is contained in:
Oleksandr Redko
2023-01-10 16:51:12 +02:00
committed by GitHub
parent 1d1ab78957
commit f272a7cdc2

View File

@@ -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',