Skip to the content

Capsid menu

app/routes.ts

39 lines and 0 functions in DrDustinEdwards/carrel, at commit d5d5e82 on 2026-10-24. This file on GitHub.

Functions

None: it only declares types or values.

Imports

It imports no other module of this repo. No module of this repo imports it.

Source

import { index, layout, route, type RouteConfig } from "@react-router/dev/routes";

export default [
  // Every page sits in the shell; the resource routes (the preview, the media API, the exports, the
  // Google redirects) render nothing of their own and stay outside it.
  layout("routes/frame.tsx", [
    index("routes/home.tsx"),
    route("p/:project", "routes/project.tsx"),
    route("p/:project/new", "routes/project.new.tsx"),
    route("p/:project/e/:item", "routes/editor.tsx"),
    route("p/:project/media", "routes/media.tsx"),
    route("p/:project/flags", "routes/project.flags.tsx"),
    route("p/:project/voice", "routes/project.voice.tsx"),
    route("p/:project/legal", "routes/legal.tsx"),
    route("p/:project/mentions", "routes/mentions.tsx"),
    route("people", "routes/people.tsx"),
    route("books/new", "routes/book.new.tsx"),
    route("b/:project", "routes/book.tsx"),
    route("b/:project/c/:chapter", "routes/book.chapter.tsx"),
    route("b/:project/outliner", "routes/book.outliner.tsx"),
    route("b/:project/corkboard", "routes/book.corkboard.tsx"),
    route("b/:project/h/*", "routes/book.history.tsx"),
    route("b/:project/f/*", "routes/book.file.tsx"),
    route("p/:project/e/:item/unpublish", "routes/unpublish.tsx"),
    route("p/:project/e/:item/ai/:id", "routes/ai-draft.tsx"),
    route("p/:project/e/:item/history", "routes/history.tsx"),
    route("manuscripts", "routes/manuscripts.tsx"),
    route("social", "routes/social.tsx"),
  ]),
  route("p/:project/media/api", "routes/media.api.ts"),
  route("p/:project/media/bulk", "routes/media.bulk.ts"),
  route("p/:project/bulk", "routes/project.bulk.ts"),
  route("p/:project/mentions/api", "routes/mentions.api.ts"),
  route("p/:project/e/:item/preview", "routes/preview.ts"),
  route("p/:project/e/:item/ai/:id/preview", "routes/ai-draft.preview.ts"),
  route("b/:project/export/:format", "routes/book.export.ts"),
  route("b/:project/authorship", "routes/book.authorship.ts"),
  route("health", "routes/health.ts"),
  route("auth/google/:step", "routes/auth.google.ts"),
] satisfies RouteConfig;