Skip to content

Commit

Permalink
fix(app): repairing Böbers commit!
Browse files Browse the repository at this point in the history
  • Loading branch information
Utzel-Butzel committed Oct 19, 2023
1 parent 7aae07c commit 75dad40
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import cors from "cors";
config();
const app = express();

app.options("*", cors());


const __dirname = path.dirname(new URL(import.meta.url).pathname);

//const configparser = require("./helpers/configparser.mjs");
Expand All @@ -34,16 +31,14 @@ async function main() {
}
await download(timeout);
//TODO check if we want a success download before start server
<<<<<<< HEAD

app.use(cors());
app.use(
"/",
express.static(configparser.get_content_dir()),
serveIndex(configparser.get_content_dir(), { icons: true })
);
=======
app.use(cors());
app.use("/", express.static(configparser.get_content_dir()), serveIndex(configparser.get_content_dir(), { icons: true }));
>>>>>>> f6d360ce35cda88445bc7023dd83d06efadc42fd

app.use((err, req, res, next) => {
if (err && err.status === 416) {
// Checking for Range Not Satisfiable error
Expand Down

0 comments on commit 75dad40

Please sign in to comment.