APS_NodeJS_MultiModel/server.js
2024-11-24 04:52:39 -03:00

8 lines
300 B
JavaScript

const express = require('express');
const { PORT } = require('./config.js');
let app = express();
app.use(express.static('wwwroot'));
app.use(require('./routes/auth.js'));
app.use(require('./routes/models.js'));
app.listen(PORT, function () { console.log(`Server listening on port ${PORT}...`); });