Skip to content

Commit

Permalink
New version 1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Sep 5, 2023
1 parent 8bf3353 commit be95025
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mappable-test-server",
"version": "1.0.7",
"version": "1.0.8",
"private": "true",
"description": "Test server for demonstrating work with the tile and bbox data loading API for the Mappable API",
"scripts": {
Expand Down
9 changes: 6 additions & 3 deletions src/app/config/production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ const production: Config = {
database: process.env.DB_NAME ?? '',
password: process.env.DB_PASSWORD ?? '',
port: Number(process.env.DB_PORT ?? 5432),
ssl: {
rejectUnauthorized: false
}
ssl:
process.env.DB_SSL === 'true'
? {
rejectUnauthorized: false
}
: undefined
},
logger: {
disableLogging: process.env.DISABLE_LOGGING === 'true'
Expand Down
4 changes: 2 additions & 2 deletions src/app/v1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {loadByTile} from './load-by-tile';
import {loadByBBox} from './load-by-bbox';
import {apiDocs} from '../middleware/api-docs';

export const router = Router()
.get('/api_docs', apiDocs)
export const router = Router({mergeParams: true})
.use('/api_docs', apiDocs)
.get('/tile', asyncMiddleware(loadByTile))
.get('/bbox', asyncMiddleware(loadByBBox));

0 comments on commit be95025

Please sign in to comment.