An outer box-shadow casts a shadow as if the border-box of the element were opaque. Assuming a spread distance of zero, its perimeter has the exact same size and shape as the border box. The shadow is drawn outside the border edge only: it is clipped inside the border-box of the element.
app.param('userId', (req, res, next) => {
// тут какой-то длинный код
next();
});
app.get('/users/:userId', (req, res) => { ... });
app.get('/users/:userId/info', (req, res) => { ... });
app.post('/users/:userId', (req, res) => { ... });
location /category/ {
# если URI заканчивается на XXX.html,
# то реврайтим в то же самое и прекращаем обработку.
rewrite "^(.+\d{1,4}\.html)$" $1 break;
# у всего остального заменяем `.html` на `/`
rewrite "^(.+)\.html$" $1/;
}
sudo nginx -t