В моей базе данных есть следующие строки: json file:
"rewrites": [
{
"source": "/blog/abc",
"destination": "/abc.html"
},
{
"source": "/blog/def",
"destination": "/def.html"
},
......
......
]
Как мне сделать это в одном выражении, похожем на это:
"rewrites": [
{
"source": "/blog/:post*",
"destination": "/:post.html"
}
]