diff --git a/routes/_middleware.ts b/routes/_middleware.ts index 88ec070..e162d1d 100644 --- a/routes/_middleware.ts +++ b/routes/_middleware.ts @@ -30,11 +30,11 @@ export async function handler( `${baseUrl}/users/${user.user_id}${ new Date(user.updated_at).toISOString() }` - ).join() + posts.map((post) => + ).join("") + posts.map((post) => `${baseUrl}/posts/${post.id}${ new Date(post.updated_at).toISOString() }` - ) + ).join("") }`, { headers: { "content-type": 'application/xml; charset="UTF-8"' },