Expand description
Module for /home, /login, /logout and /error entrypoints.
Structs§
- Struct for representing detailed errors in JSON format.
- Struct for representing a JSON Response with a redirect URL.
- Handles the error endpoint, rendering the appropriate HTML page based on session issues.
- Handles the home endpoint, rendering the listing page for authenticated users.
- Handles the login endpoint, verifying credentials and creating session tokens.
- Handles the logout endpoint, logging out the user and rendering the appropriate HTML page.
Functions§
- Constructs an
HttpResponsefor failedsession_tokenverification.