mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
backend: initial log in dialog
This commit is contained in:
parent
6f6e6ae6d7
commit
8bba2ff1ba
8 changed files with 83 additions and 7 deletions
|
@ -25,6 +25,11 @@ app.use(express.urlencoded({ extended: false }));
|
|||
app.use(cookieParser());
|
||||
app.use(lessMiddleware(path.join(__dirname, 'public')));
|
||||
app.use(express.static(path.join(__dirname, 'public')));
|
||||
app.use((req, res, next) => {
|
||||
res.header('Access-Control-Allow-Origin', '*');
|
||||
res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept');
|
||||
next();
|
||||
});
|
||||
|
||||
// app.use('/', indexRouter);
|
||||
// app.use('/users', usersRouter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue