@@ -11,6 +11,8 @@ import cors from 'cors'
1111import indexRouter from './routes/index.js'
1212import apiRouter from './routes/api-routes.js'
1313import clientRouter from './routes/client.js'
14+ import _gog_fragmentsRouter from './routes/_gog_fragments_from_manuscript.js' ;
15+ import _gog_glossesRouter from './routes/_gog_glosses_from_manuscript.js' ;
1416import rest from './rest.js'
1517import { fileURLToPath } from 'url'
1618const __filename = fileURLToPath ( import . meta. url )
@@ -49,7 +51,10 @@ app.use(
4951 'Cache-Control' ,
5052 'Last-Modified' ,
5153 'Link' ,
52- 'X-HTTP-Method-Override'
54+ 'X-HTTP-Method-Override' ,
55+ 'Origin' ,
56+ 'Referrer' ,
57+ 'User-Agent'
5358 ] ,
5459 "exposedHeaders" : "*" ,
5560 "origin" : "*" ,
@@ -64,7 +69,6 @@ app.use(cookieParser())
6469//Publicly available scripts, CSS, and HTML pages.
6570app . use ( express . static ( path . join ( __dirname , 'public' ) ) )
6671
67-
6872/**
6973 * For any request that comes through to the app, check whether or not we are in maintenance mode.
7074 * If we are, then show the sad puppy. Otherwise, continue on.
@@ -85,6 +89,9 @@ app.use('/v1', apiRouter)
8589
8690app . use ( '/client' , clientRouter )
8791
92+ app . use ( '/gog/fragmentsInManuscript' , _gog_fragmentsRouter )
93+ app . use ( '/gog/glossesInManuscript' , _gog_glossesRouter )
94+
8895/**
8996 * Handle API errors and warnings RESTfully. All routes that don't end in res.send() will end up here.
9097 * Important to note that res.json() will fail to here
0 commit comments