FFFF Domain modules import from routes/ · Issue #299 · alexbeeken/skrongle-mini · GitHub
[go: up one dir, main page]

Skip to content

Domain modules import from routes/ #299

Backlog

Description

@alexbeeken

The split is otherwise clean (about 15 SQL statements in all of routes/), which is why these stand out:

  • src/content.rs:708,841,848: ContentStore owns an Arc<crate::routes::CourseView>.
  • src/tutor.rs:35: use crate::routes::quiz::AnswerResponse.
  • src/mcp/tools.rs:21: imports check_file, course_write_refused, may_create_courses, own_course, store_copy, store_files from crate::routes::courses.
  • src/auth.rs:502: crate::routes::sprint::tz_offset_secs.
  • src/security.rs:102, src/proxy_auth.rs:202: crate::routes::oauth::PROGRAM_PATHS.
  • src/motivators.rs:32, src/motivators/xp.rs:15: use crate::routes::CourseView.
  • grade_and_record (src/routes/quiz.rs:381), described as the one grading path for every mode and called by the tutor, guide and agent routes, lives in a route file.

Three small PRs:

  1. Move grade_and_record, AnswerResponse and NewWord into quiz.rs or a new grading.rs.
  2. Move routes/courses/write.rs to courses/write.rs.
  3. Move CourseView beside ContentStore, and tz_offset_secs and PROGRAM_PATHS to where their users are (the cookies module from the cookies issue; oauth_server.rs).

From the code review of 24 November 2026. Line numbers are as of 0.5.0 (2547b36).

Activity

  1. added
    review
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0