Skip to content

Commit 68682f3

Browse files
committed
Merge branch 'main' into cubap/issue172
2 parents 93df262 + 6e257e9 commit 68682f3

7 files changed

Lines changed: 789 additions & 705 deletions

File tree

app.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import cors from 'cors'
1010
import indexRouter from './routes/index.js'
1111
import apiRouter from './routes/api-routes.js'
1212
import clientRouter from './routes/client.js'
13+
import _gog_fragmentsRouter from './routes/_gog_fragments_from_manuscript.js';
14+
import _gog_glossesRouter from './routes/_gog_glosses_from_manuscript.js';
1315
import rest from './rest.js'
1416
import { fileURLToPath } from 'url'
1517
const __filename = fileURLToPath(import.meta.url)
@@ -44,7 +46,10 @@ app.use(
4446
'Cache-Control',
4547
'Last-Modified',
4648
'Link',
47-
'X-HTTP-Method-Override'
49+
'X-HTTP-Method-Override',
50+
'Origin',
51+
'Referrer',
52+
'User-Agent'
4853
],
4954
"exposedHeaders" : "*",
5055
"origin" : "*",
@@ -59,7 +64,6 @@ app.use(cookieParser())
5964
//Publicly available scripts, CSS, and HTML pages.
6065
app.use(express.static(path.join(__dirname, 'public')))
6166

62-
6367
/**
6468
* For any request that comes through to the app, check whether or not we are in maintenance mode.
6569
* If we are, then show the sad puppy. Otherwise, continue on.
@@ -80,6 +84,9 @@ app.use('/v1', apiRouter)
8084

8185
app.use('/client', clientRouter)
8286

87+
app.use('/gog/fragmentsInManuscript', _gog_fragmentsRouter)
88+
app.use('/gog/glossesInManuscript', _gog_glossesRouter)
89+
8390
/**
8491
* Handle API errors and warnings RESTfully. All routes that don't end in res.send() will end up here.
8592
* Important to note that res.json() will fail to here

bin/stopApp.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)