app.routes package

Submodules

app.routes.auth module

app.routes.auth.auth()[source]
app.routes.auth.auth_complete_route()[source]
app.routes.auth.login_page()[source]
app.routes.auth.login_route()[source]
app.routes.auth.signout_route()[source]
app.routes.auth.signup_route()[source]

app.routes.docs module

app.routes.docs.docs_index()[source]

Redirects to the main documentation page.

app.routes.docs.docs_tsindex()[source]

Redirects to the main TypeDoc documentation page.

app.routes.docs.serve_docs(filename)[source]

Serves the Sphinx-generated HTML documentation.

app.routes.docs.serve_static(filename)[source]

Serves static assets for Sphinx documentation

app.routes.docs.serve_tsdocs(filename)[source]

Serves the TypeDoc-generated HTML documentation.

app.routes.docs.serve_tsstatic(filename)[source]

Serves static assets for TypeDoc documentation

app.routes.logging module

app.routes.logging.ai_usage_route()[source]

Retrieve AI usage statistics See Swagger docs for more information.

app.routes.logging.get_all_logs_route()[source]

Retrieve all logs in the database See Swagger docs for more information.

app.routes.logging.get_logs_by_class_route(class_id)[source]

Get all logs for a specific class (user_class_id)

app.routes.logging.get_logs_by_user_route(user_id)[source]

Get all logs for a specific user See Swagger docs for more information.

app.routes.logging.health_check()[source]

Health check endpoint to verify the service is running.

app.routes.logging.log_event_route()[source]

Logs the event to the database. See Swagger docs for more information.

app.routes.logging.log_suggestion_route()[source]

app.routes.main_page module

app.routes.main_page.download_route()[source]
app.routes.main_page.get_all_data()[source]

Retrieve all data from the database.

app.routes.main_page.main_page_route()[source]

Displays test AI input page

app.routes.suggestions module

app.routes.suggestions.generate_explanation()[source]

Generate a explanation telling the user what is wrong with the ‘bad code’.

app.routes.suggestions.generate_hint()[source]

Generate a hint explaining the difference between code versions.

app.routes.suggestions.generate_suggestion_route()[source]

Generate a suggestion based on the provided prompt. See Swagger docs for more information.

app.routes.suggestions.get_suggestion_details(suggestion_id)[source]
app.routes.suggestions.list_models_route()[source]
app.routes.suggestions.refine_prompt()[source]

Generate a refined prompt for code completion.

app.routes.suggestions.validate_fix()[source]

Validate the user’s fixed code using an AI model.

app.routes.user module

app.routes.user.create_user_section_route(user_id)[source]
app.routes.user.delete_user_route(user_id)[source]
app.routes.user.get_all_users_route()[source]
app.routes.user.get_user_class_status_route(user_id)[source]
app.routes.user.get_user_classes_route(user_id)[source]
app.routes.user.get_user_route(user_id)[source]
app.routes.user.get_user_section_route(user_id)[source]
app.routes.user.update_user_route(user_id)[source]
app.routes.user.update_user_section_route(user_id)[source]
app.routes.user.update_user_settings_route(user_id)[source]
app.routes.user.update_user_status_route(user_id)[source]

Module contents

app.routes.register_blueprints(app)[source]