Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .claude/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ The `db-controller.js` is a facade that imports from specialized controller modu
- `controllers/release.js`: Object release (immutability)
- `controllers/bulk.js`: Bulk create and update operations
- `controllers/search.js`: MongoDB text search (searchAsWords, searchAsPhrase)
- `controllers/gog.js`: Gallery of Glosses specific operations (fragments, glosses, expand)
- `controllers/utils.js`: Shared utilities (ID generation, slug handling, agent claims)

**4. Authentication & Authorization:**
Expand All @@ -113,7 +112,6 @@ The `db-controller.js` is a facade that imports from specialized controller modu
**5. Special Features:**
- **Slug IDs:** Optional human-readable IDs via Slug header (e.g., "my-annotation")
- **PATCH Override:** X-HTTP-Method-Override header allows POST to emulate PATCH for clients without PATCH support
- **GOG Routes:** Specialized endpoints for Gallery of Glosses project (`/gog/fragmentsInManuscript`, `/gog/glossesInManuscript`)
- **Content Negotiation:** Handles both `@id`/`@context` (JSON-LD) and `id` (plain JSON) patterns

### Directory Structure
Expand Down
3 changes: 1 addition & 2 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ After making changes, ALWAYS validate these scenarios:

### Key Directories
- `/routes/` - Route handlers and API endpoints (Express routes)
- `/controllers/` - Business logic controllers (CRUD operations, GOG-specific controllers)
- `/controllers/` - Business logic controllers (CRUD operations, history, release, bulk operations)
- `/database/` - Database connection and utilities (MongoDB integration)
- `/auth/` - Authentication middleware (Auth0 JWT handling)
- `/public/` - Static files (API.html, context.json, etc.)
Expand All @@ -145,7 +145,6 @@ After making changes, ALWAYS validate these scenarios:
- **Database**: MongoDB for persistent storage, versioned objects
- **Static Files**: Served directly from `/public` directory
- **CORS**: Fully open ("*") for cross-origin requests
- **Specialized Routes**: Gallery of Glosses (GOG) specific endpoints in `_gog_*.js` files

### Coding Style Guidelines
- **Semicolons**: Avoid unnecessary semicolons (e.g., at the end of most lines)
Expand Down
4 changes: 0 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import cors from 'cors'
import indexRouter from './routes/index.js'
import apiRouter from './routes/api-routes.js'
import clientRouter from './routes/client.js'
import _gog_fragmentsRouter from './routes/_gog_fragments_from_manuscript.js';
import _gog_glossesRouter from './routes/_gog_glosses_from_manuscript.js';
import rest from './rest.js'
import { fileURLToPath } from 'url'
const __filename = fileURLToPath(import.meta.url)
Expand Down Expand Up @@ -84,8 +82,6 @@ app.use('/v1', apiRouter)

app.use('/client', clientRouter)

app.use('/gog/fragmentsInManuscript', _gog_fragmentsRouter)
app.use('/gog/glossesInManuscript', _gog_glossesRouter)

/**
* Handle API errors and warnings RESTfully. All routes that don't end in res.send() will end up here.
Expand Down
Loading
Loading