Skip to content

Commit 56d35a4

Browse files
committed
[PRAC/ret] Change path for "fetch" clients
Moving from "local" server/client uploads to Render-server. Worth noting: - long/initial setup process.. long correction of the "server" file. core: B-3 / JS-BL
1 parent e53d563 commit 56d35a4

File tree

1 file changed

+4
-1
lines changed
  • core-courses/3-js-basic-level/practicum-js-basic-level/sb-crm-client/js

1 file changed

+4
-1
lines changed

core-courses/3-js-basic-level/practicum-js-basic-level/sb-crm-client/js/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,10 @@
284284

285285
async function addClientsDataToStorage() {
286286
try {
287-
const response = await fetch('http://localhost:3000/api/clients');
287+
// ! запрос на RENDER-сервер (а не на локальный, согласно маршрута.. ВНИМАНИЕ)
288+
const response = await fetch(
289+
'https://skillbus-crm.onrender.com/api/clients'
290+
);
288291

289292
// проверка успешности/выполнения запроса
290293
if (!response.ok) {

0 commit comments

Comments
 (0)