Toggle navigation
Toggle navigation
This project
Loading...
Sign in
khusat
/
khusat-server
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박기홍
2020-12-04 20:33:50 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
aca7bd5f3c48655651c0efddcadd0d59da389286
aca7bd5f
1 parent
71b8ad5d
주석 정리
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
src/index.js
src/index.js
View file @
aca7bd5
...
...
@@ -8,19 +8,6 @@ const bodyParser = require('body-parser');
app
.
use
(
bodyParser
.
urlencoded
({
extended
:
true
}));
app
.
use
(
bodyParser
.
json
());
// app.use(cors());
// app.all('/*', function(req, res, next) {
// res.header("Access-Control-Allow-Origin", "*");
// res.header("Access-Control-Allow-Headers", "X-Requested-With");
// next();
// });
// app.all('/*', function(req, res, next) {
// res.header("Access-Control-Allow-Origin", "*");
// res.header("Access-Control-Allow-Headers", "X-Requested-With");
// next();
// });
const
db
=
mongoose
.
connection
;
db
.
on
(
'error'
,
console
.
error
);
...
...
Please
register
or
login
to post a comment