feat: update API endpoints to use production URL and enhance UI components in authenticated routes
This commit is contained in:
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user