Skip to content

Commit

Permalink
small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Oct 1, 2024
1 parent 94c825d commit 057f5ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fastify-plugins/maps/styled-map-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ async function routes(fastify) {
throw new Error('Could not find `comapeoSmp` decorator')
}

fastify.get('/style.json', async () => {
const baseUrl = fastify.prefix
? new URL(fastify.prefix, fastify.listeningOrigin).href
: fastify.listeningOrigin
const baseUrl = fastify.prefix
? new URL(fastify.prefix, fastify.listeningOrigin).href
: fastify.listeningOrigin

fastify.get('/style.json', async () => {
return fastify.comapeoSmp.getStyle(baseUrl)
})

Expand Down

0 comments on commit 057f5ef

Please sign in to comment.