mirror of
https://gitlab.com/nekoya/web.git
synced 2024-11-21 13:56:19 +01:00
Fix assets CORS
This commit is contained in:
parent
8d7b0d4628
commit
3809342d48
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -16,7 +16,6 @@ try {
|
|||
process.exit(0);
|
||||
}
|
||||
|
||||
app.use(express.static("public"));
|
||||
app.set("view engine", "ejs");
|
||||
|
||||
app.use(bodyParser.urlencoded({ extended: true }));
|
||||
|
@ -36,6 +35,7 @@ app.use(function (req, res, next) {
|
|||
next();
|
||||
});
|
||||
|
||||
app.use(express.static("public"));
|
||||
app.use('/', indexRouter);
|
||||
app.use('/api', api);
|
||||
|
||||
|
|
Loading…
Reference in a new issue