FluffyUpload/main.js

19 lines
348 B
JavaScript
Raw Normal View History

2024-07-10 18:57:38 +02:00
const express = require('express');
require('dotenv').config();
const app = express();
const port = process.env.PORT;
const cors = require('cors');
app.use(cors({
origin: '*'
}));
const Uploader = require('./routes/Upload')
app.use('/v1/r2', Uploader);
app.listen(port, () => {
console.log(`
FluffUpload - Running on ${port}
`);
});