From 4d763cb5426fd553f731b9320b29b8327bd37808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?In=C3=A8s=20Yeterian?= <ines.yeterian@student-cs.fr> Date: Wed, 9 Feb 2022 00:18:57 +0100 Subject: [PATCH] cleanup --- backend/routes/routesToucan.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/backend/routes/routesToucan.js b/backend/routes/routesToucan.js index b818b10..25d6ce7 100644 --- a/backend/routes/routesToucan.js +++ b/backend/routes/routesToucan.js @@ -10,20 +10,6 @@ var upload = require("../utils/fileSaver"); var Toucan = require("../models/modelToucan"); var router = express.Router(); -/* const urltoucans = Toucan.aggregate([ - {$addFields: {titlelc: {$split: [{$toLower:"$title"}, " "]}}}, - {$addFields:{year:{$dateToString: {format: "%Y", date: "$date"}}}}, - {$addFields: - {titlelcnospace: - {$reduce: - {input: "$titlelc",initialValue: "", - in: { $concat : ["$$value", "$$this"]}}} }}, - {$addFields: - {urlId: - {$concat:["$titlelcnospace","-","$year"]}}}, - {$unset:["titlelc","year","titlelcnospace"]} -]); */ - router.route("/toucans") /** * Une route qui renvoie un json avec tous les toucans, si limit est défini et vaut n, on renvoie les n derniers toucans -- GitLab