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
604 B
JavaScript
Raw Normal View History

2021-03-18 10:04:32 +00:00
const express = require('express');
const app = express();
2021-05-10 13:20:31 +00:00
const port = 7777;
2021-03-18 12:56:34 +00:00
const logIn = require('./methods/logIn');
2021-04-15 09:35:47 +00:00
const con = require('./db/connect');
2021-03-18 12:56:34 +00:00
const dataLogIn = logIn.info;
exports.dataLogIn = dataLogIn;
2021-03-18 10:04:32 +00:00
2021-04-15 09:35:47 +00:00
con.con.connect(function(err) {});
app.use('/getNumShelving', require('./methods/setCollection__'));
2021-03-18 10:04:32 +00:00
app.use('/insertTicket', require('./methods/bindTicketShelving'));
2021-03-24 10:45:56 +00:00
app.use('/bindShelving', require('./methods/bindShelvingTag'));
2021-03-25 12:38:48 +00:00
app.use('/flashOn', require('./methods/flashOn'));
2021-03-18 10:04:32 +00:00
app.listen(port, () => {
2021-03-18 10:38:05 +00:00
console.log(`Example app listening at http://localhost:${port}`);
2021-03-18 10:04:32 +00:00
});