Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source-group1
/
animal-Info
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
Eunsu486
2021-05-25 19:41:28 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fac426d278b88a293e3ad89f05bc3b75ee14a2d5
fac426d2
1 parent
c2935780
Modify app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
app.js
app.js
View file @
fac426d
...
...
@@ -6,8 +6,11 @@ var logger = require('morgan');
var
indexRouter
=
require
(
'./routes/index'
);
var
usersRouter
=
require
(
'./routes/users'
);
var
categoryRouter
=
require
(
'./routes/category'
);
var
vendorRounter
=
require
(
'./routes/vendors'
);
var
app
=
express
();
var
bodyParser
=
require
(
'body-parser'
);
// view engine setup
app
.
set
(
'views'
,
path
.
join
(
__dirname
,
'views'
));
...
...
@@ -26,6 +29,9 @@ app.use('/users', usersRouter);
app
.
use
(
function
(
req
,
res
,
next
)
{
next
(
createError
(
404
));
});
app
.
use
(
'/category'
,
categoryRouter
);
app
.
use
(
'/vendors/bootstrap'
,
express
.
static
(
path
.
join
(
__dirname
,
"./node_modules/bootstrap/dist"
)));
app
.
use
(
bodyParser
.
urlencoded
({
extended
:
false
}));
// error handler
app
.
use
(
function
(
err
,
req
,
res
,
next
)
{
...
...
Please
register
or
login
to post a comment