feat: update API endpoints to use production URL and enhance UI components in authenticated routes

This commit is contained in:
2025-08-25 15:07:09 -06:00
parent 012a5a58b0
commit 602c5dbb31
5 changed files with 27 additions and 31 deletions

View File

@@ -497,7 +497,7 @@ function MejorarAIButton({ asignaturaId, onApply }: {
async function apply() {
setLoading(true)
try {
const res = await fetch("http://localhost:3001/api/mejorar/asignatura", {
const res = await fetch("https://genesis-engine.apps.lci.ulsa.mx/api/mejorar/asignatura", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ asignatura_id: asignaturaId, prompt, insert }),