Skip to content

Commit d7be6fe

Browse files
authored
Merge pull request #66 from oss-slu/remove-gog
Removed all routes and files related to Gallery of Glosses (GOG)
2 parents 252ec59 + 03f64fb commit d7be6fe

7 files changed

Lines changed: 1 addition & 447 deletions

File tree

.claude/CLAUDE.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ The `db-controller.js` is a facade that imports from specialized controller modu
100100
- `controllers/release.js`: Object release (immutability)
101101
- `controllers/bulk.js`: Bulk create and update operations
102102
- `controllers/search.js`: MongoDB text search (searchAsWords, searchAsPhrase)
103-
- `controllers/gog.js`: Gallery of Glosses specific operations (fragments, glosses, expand)
104103
- `controllers/utils.js`: Shared utilities (ID generation, slug handling, agent claims)
105104

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

119117
### Directory Structure

.github/copilot-instructions.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ After making changes, ALWAYS validate these scenarios:
125125

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

150149
### Coding Style Guidelines
151150
- **Semicolons**: Avoid unnecessary semicolons (e.g., at the end of most lines)

app.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import cors from 'cors'
99
import indexRouter from './routes/index.js'
1010
import apiRouter from './routes/api-routes.js'
1111
import clientRouter from './routes/client.js'
12-
import _gog_fragmentsRouter from './routes/_gog_fragments_from_manuscript.js';
13-
import _gog_glossesRouter from './routes/_gog_glosses_from_manuscript.js';
1412
import rest from './rest.js'
1513
import { fileURLToPath } from 'url'
1614
const __filename = fileURLToPath(import.meta.url)
@@ -84,8 +82,6 @@ app.use('/v1', apiRouter)
8482

8583
app.use('/client', clientRouter)
8684

87-
app.use('/gog/fragmentsInManuscript', _gog_fragmentsRouter)
88-
app.use('/gog/glossesInManuscript', _gog_glossesRouter)
8985

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

0 commit comments

Comments
 (0)