Tengo este error cuando intento ejecutar este código:
Error UnhandledPromiseRejectionWarning: CastError: Cast to ObjectId falló para el valor "main.css" (tipo cadena) en la ruta "_id" para el modelo "FILM"
app.get('/films/:id', (req, res) => { const id = req.params['id']; FILM .findById(id) .then(item => res.render('template.ejs', {item})); }); template.ejs
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="main.css"> <title>Template</title> </head> <body> <header class="header"> <%- include('partials/header.ejs') %> </header> </body> </html> ¿Qué hace main.css en req.params ?