This commit is contained in:
parent
bf4ba27381
commit
524a71e391
@ -1,6 +1,6 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const mkdirp = require('mkdirp');
|
const {mkdirp} = require('mkdirp');
|
||||||
const sass = require('node-sass');
|
const sass = require('node-sass');
|
||||||
|
|
||||||
const nodeEnv = process.env.NODE_ENV;
|
const nodeEnv = process.env.NODE_ENV;
|
||||||
|
@ -53,7 +53,8 @@ const query_flight = (q) => axios.get('/api/flight/'+q).then(res=>res.data)
|
|||||||
|
|
||||||
const is_restauration_type = e => ["restaurant", "cafe", "pub", "bar", "fast_food", "food_court"].indexOf(e.type)!=-1;
|
const is_restauration_type = e => ["restaurant", "cafe", "pub", "bar", "fast_food", "food_court"].indexOf(e.type)!=-1;
|
||||||
|
|
||||||
const is_attraction_type = e => ["tourism", "leisure", "place", "amenity", "highway"].indexOf(e.category)!=-1;
|
const is_attraction_type = e => (["tourism", "leisure", "place", "amenity", "highway", "historic", "natural", "waterway"].indexOf(e.category)!=-1 ||
|
||||||
|
["place_of_worship", "national_park", "nature_reserve", "protected_area"].indexOf(e.type!=-1));
|
||||||
|
|
||||||
const icon_type = (item)=>{
|
const icon_type = (item)=>{
|
||||||
let t = item.type
|
let t = item.type
|
||||||
|
@ -47,7 +47,7 @@ fastify.get('/short/:id', (req, reply) => reply.sendFile('/template/journey.html
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
fastify.listen(8080,'0.0.0.0' ,(err,address) => {
|
fastify.listen({port:8080,address:'0.0.0.0'} ,(err,address) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
console.log("Listening on", address);
|
console.log("Listening on", address);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user