Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
API Toucan
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Damien Armillon
API Toucan
Compare revisions
03274cca10e1ca54d8b1141bea381d646c9be5ce to 9ccb01814e28b22dfc9e6c48d95f2b50d4ffe069
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
2018armillond/api-toucan
Select target project
No results found
9ccb01814e28b22dfc9e6c48d95f2b50d4ffe069
Select Git revision
Loading items
Swap
Target
2018armillond/api-toucan
Select target project
2018armillond/api-toucan
1 result
03274cca10e1ca54d8b1141bea381d646c9be5ce
Select Git revision
Loading items
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source
3
go back to normal for now
· 58641dad
Inès Yeterian
authored
Jan 16, 2022
58641dad
go back to normal for now
· 808dc095
Inès Yeterian
authored
Jan 16, 2022
808dc095
go back to normal for now
· 9ccb0181
Inès Yeterian
authored
Jan 16, 2022
9ccb0181
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/routes/routesToucan.js
+3
-2
3 additions, 2 deletions
backend/routes/routesToucan.js
with
3 additions
and
2 deletions
backend/routes/routesToucan.js
View file @
9ccb0181
...
@@ -2,7 +2,7 @@ var express = require("express");
...
@@ -2,7 +2,7 @@ var express = require("express");
var
fs
=
require
(
"
fs
"
);
var
fs
=
require
(
"
fs
"
);
var
path
=
require
(
"
path
"
);
var
path
=
require
(
"
path
"
);
var
{
celebrate
}
=
require
(
"
celebrate
"
);
var
{
celebrate
}
=
require
(
"
celebrate
"
);
var
mongoose
=
require
(
"
mongoose
"
);
var
{
newToucan
,
validId
,
validGet
,
validTitle
}
=
require
(
"
../utils/schema
"
);
var
{
newToucan
,
validId
,
validGet
,
validTitle
}
=
require
(
"
../utils/schema
"
);
var
env
=
require
(
"
../.env
"
);
var
env
=
require
(
"
../.env
"
);
var
isLogged
=
require
(
"
../utils/authentification
"
);
var
isLogged
=
require
(
"
../utils/authentification
"
);
...
@@ -131,7 +131,7 @@ router.route("/pdf/:title")
...
@@ -131,7 +131,7 @@ router.route("/pdf/:title")
res
.
end
(
500
);
res
.
end
(
500
);
return
;
return
;
}
else
if
(
!
data
)
{
}
else
if
(
!
data
)
{
res
.
status
(
404
).
send
(
"
Toucan non trouvé
e
"
);
res
.
status
(
404
).
send
(
"
Toucan non trouvé
"
);
return
;
return
;
}
}
const
id
=
data
.
_id
;
const
id
=
data
.
_id
;
...
@@ -139,4 +139,5 @@ router.route("/pdf/:title")
...
@@ -139,4 +139,5 @@ router.route("/pdf/:title")
}
}
);});
);});
module
.
exports
=
router
;
module
.
exports
=
router
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.