Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CaCaoCritics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bilel El Yaagoubi
CaCaoCritics
Commits
8be86ff5
Commit
8be86ff5
authored
3 years ago
by
Tom Bray
Browse files
Options
Downloads
Patches
Plain Diff
bypass pipeline
parent
d308f10e
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#42437
passed
3 years ago
Stage: lint
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
backend/routes/movies.js
+8
-8
8 additions, 8 deletions
backend/routes/movies.js
backend/server.js
+3
-3
3 additions, 3 deletions
backend/server.js
with
11 additions
and
11 deletions
backend/routes/movies.js
+
8
−
8
View file @
8be86ff5
This diff is collapsed.
Click to expand it.
backend/server.js
+
3
−
3
View file @
8be86ff5
const
express
=
require
(
"
express
"
);
const
logger
=
require
(
"
morgan
"
);
const
cors
=
require
(
"
cors
"
);
const
mongoose
=
require
(
"
mongoose
"
);
//
const mongoose = require("mongoose");
const
indexRouter
=
require
(
"
./routes/index
"
);
const
usersRouter
=
require
(
"
./routes/users
"
);
const
moviesRouter
=
require
(
"
./routes/movies
"
)
const
moviesRouter
=
require
(
"
./routes/movies
"
)
;
const
routeNotFoundJsonHandler
=
require
(
"
./services/routeNotFoundJsonHandler
"
);
const
jsonErrorHandler
=
require
(
"
./services/jsonErrorHandler
"
);
...
...
@@ -20,7 +20,7 @@ app.use(express.urlencoded({ extended: false }));
// Register routes
app
.
use
(
"
/
"
,
indexRouter
);
app
.
use
(
"
/users
"
,
usersRouter
);
app
.
use
(
"
/movies
"
,
moviesRouter
)
app
.
use
(
"
/movies
"
,
moviesRouter
)
;
// Register 404 middleware and error handler
app
.
use
(
routeNotFoundJsonHandler
);
// this middleware must be registered after all routes to handle 404 correctly
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment