This repository has been archived on 2024-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
smart-tag/server.js

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}`);
});