19 lines
348 B
JavaScript
19 lines
348 B
JavaScript
|
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}
|
||
|
`);
|
||
|
});
|