mirror of
https://github.com/Daniongithub/startfermate-api.git
synced 2025-10-02 12:10:49 +00:00
I did an oopsie.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "start-fermate-api",
|
"name": "start-fermate-api",
|
||||||
"version": "2.1.5",
|
"version": "2.1.6",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node server.js"
|
"start": "node server.js"
|
||||||
|
@@ -5,7 +5,7 @@ const cors = require('cors');
|
|||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
const port = 3005;
|
const port = 3005;
|
||||||
const version = "2.1.5";
|
const version = "2.1.6";
|
||||||
|
|
||||||
app.use(cors());
|
app.use(cors());
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
@@ -31,7 +31,7 @@ app.get('/fermata', async (req, res) => {
|
|||||||
var stato = element.find('.bus-status').text().trim();
|
var stato = element.find('.bus-status').text().trim();
|
||||||
var linea = headerSpan.contents().filter((i, el) => el.type === 'text').text().trim();
|
var linea = headerSpan.contents().filter((i, el) => el.type === 'text').text().trim();
|
||||||
linea = linea.replace("Linea ", "");
|
linea = linea.replace("Linea ", "");
|
||||||
const destinazione = element.find('.bus-destination').text().trim();
|
var destinazione = element.find('.bus-destination').text().trim();
|
||||||
var mezzo = element.find('.det a').attr('data-vehicle') || '';
|
var mezzo = element.find('.det a').attr('data-vehicle') || '';
|
||||||
|
|
||||||
//Aggiustamenti
|
//Aggiustamenti
|
||||||
|
Reference in New Issue
Block a user