waibu-maps
Version:
Maps for Waibu MPA
14 lines (11 loc) • 351 B
JavaScript
import { glyphUrl } from './default-style.js'
const wmaps = {
url: '/wmaps.js',
method: 'GET',
handler: async function (req, reply) {
const { routePath } = this.app.waibu
const glyphs = routePath(glyphUrl, { uriEncoded: false })
return reply.view('waibuMaps.template:/wmaps.js', { glyphs })
}
}
export default wmaps