20 lines
651 B
JavaScript
20 lines
651 B
JavaScript
const express = require('express');
|
|
const app = express();
|
|
const port = 7777;
|
|
const logIn = require('./methods/logIn');
|
|
const con = require('./db/connect');
|
|
|
|
const dataLogIn = logIn.info;
|
|
exports.dataLogIn = dataLogIn;
|
|
|
|
con.con.connect(function(err) {});
|
|
|
|
app.use('/getNumShelving', require('./methods/setCollection__'));
|
|
app.use('/insertTicket', require('./methods/bindTicketShelving')); // collectionFk
|
|
app.use('/bindShelving', require('./methods/bindShelvingTag')); // smartTagFk, shelving, level
|
|
app.use('/flashOn', require('./methods/flashOn'));
|
|
|
|
app.listen(port, () => {
|
|
console.log(`Example app listening at http://localhost:${port}`);
|
|
});
|