Skip to content

Commit

Permalink
Corrigindo caminho de arquivo para cursos
Browse files Browse the repository at this point in the history
  • Loading branch information
GEdO23 committed Apr 28, 2024
1 parent c0fb947 commit c2482b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Components/js/Curso/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Curso } from "./curso.js";
const url = "../../../components/base/cursos.json";
const url = "/Components/base/cursos.json";
fetch(url, { method: "GET" })
.then((_response) => _response.json())
.then((_data) => {
Expand Down
2 changes: 1 addition & 1 deletion Components/ts/Curso/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Curso } from "./curso.js";

const url = "../../../components/base/cursos.json";
const url = "/Components/base/cursos.json";

fetch(url, {method: "GET"})
.then((_response) => _response.json())
Expand Down

0 comments on commit c2482b8

Please sign in to comment.