forked from TDTP/admin_transporte_frontend
fix ruta endpoint
parent
ec34d983a2
commit
645166bf0b
|
@ -48,7 +48,7 @@ export async function deleteLinea(id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getParaderosLinea(id_linea) {
|
export async function getParaderosLinea(id_linea) {
|
||||||
const res = await fetch(`${base}/lineas/paraderos?id_linea=${id_linea}`, {
|
const res = await fetch(`${base}/lineas/paraderos/?id_linea=${id_linea}`, {
|
||||||
headers: { "Authorization": `Bearer ${getToken()}`, "Content-Type": "application/json" }
|
headers: { "Authorization": `Bearer ${getToken()}`, "Content-Type": "application/json" }
|
||||||
})
|
})
|
||||||
if (!res.ok) throw await res.text()
|
if (!res.ok) throw await res.text()
|
||||||
|
@ -56,7 +56,7 @@ export async function getParaderosLinea(id_linea) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getBusesLinea(id_linea) {
|
export async function getBusesLinea(id_linea) {
|
||||||
const res = await fetch(`${base}/lineas/buses?id_linea=${id_linea}`, {
|
const res = await fetch(`${base}/lineas/buses/?id_linea=${id_linea}`, {
|
||||||
headers: { "Authorization": `Bearer ${getToken()}`, "Content-Type": "application/json" }
|
headers: { "Authorization": `Bearer ${getToken()}`, "Content-Type": "application/json" }
|
||||||
})
|
})
|
||||||
if (!res.ok) throw await res.text()
|
if (!res.ok) throw await res.text()
|
||||||
|
|
Loading…
Reference in New Issue