8000 Remove routes nothing reaches: the parent's old paths and pages that only redirect · Issue #308 · alexbeeken/skrongle-mini · GitHub
[go: up one dir, main page]

Skip to content

Remove routes nothing reaches: the parent's old paths and pages that only redirect #308

In review

Description

@alexbeeken

All of these were already redirects in mini's first release (0.1.1), so no mini install has a bookmark to them. Only browser specs reach them.

The parent's old paths (src/routes/mod.rs): :212 /study; :276-282 /d, /d/{*rest}, /api/d/{*rest}, /k, /g, /games, /games/{*rest}; :347 /superuser; and the moved helper at :155-164.

Old pages that only redirect:

  • GET /courses/new (src/routes/courses/create.rs:15-18)
  • GET /courses/generate (src/routes/courses/generate.rs:313-315, :330-338, with GenerateParams)
  • GET /courses/generate/{job} (generate.rs:662-668)
  • GET /courses/{id}/share (src/routes/share.rs:39-43), probably

Routes no page or script calls:

  • POST /courses/{id}/publish (src/routes/mod.rs:241, src/routes/courses/files.rs:137-150). Only e2e/specs/pathways.spec.ts:215. Its "loads" notice and courses.editor.loads_notice cannot be reached any other way.
  • POST /courses/{id}/lessons (src/routes/mod.rs:252). The editor posts /api/courses/{id}/lessons. The no-session branch of save_lessons (src/routes/courses/lessons.rs:94-108) exists only for it. Probably removable.
  • Dev only: the three GET /dev/ai/…/models routes (src/routes/dev.rs:374-378, src/routes/dev_ai.rs:267-288).

Update the specs that touch them (e2e/specs/create.spec.ts:169,171,355, exact.spec.ts:345,361, lessons.spec.ts:46, pathways.spec.ts:215) in the same PR. About 100 lines of Rust.

Reached only from outside the pages and documented, so they stay: /api/progress*, /mcp, /oauth/*, /.well-known/*, /api/v1/whoami, /healthz.

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