@@ -10,6 +10,8 @@ import cors from 'cors'
1010import indexRouter from './routes/index.js'
1111import apiRouter from './routes/api-routes.js'
1212import 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' ;
1315import rest from './rest.js'
1416import { fileURLToPath } from 'url'
1517const __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.
6065app . 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
8185app . 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
0 commit comments