This page documents every HTTP route defined inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/groupTwoisTheBest/evaJav/llms.txt
Use this file to discover all available pages before exploring further.
main.py. Evalua Javiera exposes four GET endpoints, each of which renders a Jinja2 HTML template and injects a per-route JavaScript file through the linkJs context variable. All routes return an HTMLResponse and are handled by async functions powered by FastAPI.
GET / — Login Page
GET / — Login Page
Handler:
read_rootTemplate: index.htmlJS context: /static/js/index.jsThis is the application’s entry point. It renders the login form where a student enters their document number (username) and password. On submission, the client-side login(event) function in index.js validates the credentials against the hard-coded users array and, on success, redirects to /seleccionatuprofesor.GET /seleccionatuprofesor — Teacher Selection
GET /seleccionatuprofesor — Teacher Selection
Handler:
read_seleccionatuprofesorTemplate: selectProfesor.htmlJS context: /static/js/sele_prof.jsRenders a form containing a <select> dropdown (id="maestro") that lists available teachers — Lenny, Erika, and Freddy. When the student submits the form, sele_prof.js saves the chosen teacher’s name to localStorage and redirects to /calificaElProfesor.GET /calificaElProfesor — Rating Form
GET /calificaElProfesor — Rating Form
Handler:
read_calificaElProfesorTemplate: calification_plataform.htmlJS context: /static/js/cal_plataform.jsDisplays the rating form for the teacher previously selected. It reads the teacher’s name from localStorage and displays it in the form legend. Three dropdown selects allow the student to rate the teacher across three categories: topic explanation (explicationsTopics), attitude (actitudinal), and class activities (classActivity). On submission, cal_plataform.js serialises the ratings to localStorage and redirects to /Agradecimiento.GET /Agradecimiento — Confirmation / Certificate
GET /Agradecimiento — Confirmation / Certificate
Handler:
read_agradecimientoTemplate: certificado.htmlJS context: /static/js/index.jsRenders the thank-you confirmation page shown after a student submits their ratings. It displays a “Certificado de Evaluación” heading, a brief thank-you message, and a Regresar button that links back to /seleccionatuprofesor so another student can begin a new evaluation session.Full Route Definitions
The complete route block frommain.py, including the LinkJS lookup list and the static-file mount:
All four routes use
response_class=HTMLResponse, meaning FastAPI returns a fully-rendered HTML document rather than JSON. Every handler is declared async, allowing the Uvicorn/ASGI server to handle requests concurrently without blocking the event loop.