fix(web): correct syntax error in rss feed
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 7s
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 7s
This commit is contained in:
@@ -11,30 +11,30 @@ export async function GET() {
|
||||
});
|
||||
|
||||
const rssItems = tasks.map((task) => {
|
||||
const url = \`https://agent.wooo.work/tasks/\${task.id}\`;
|
||||
const url = `https://agent.wooo.work/tasks/${task.id}`;
|
||||
const pubDate = new Date(task.created_at).toUTCString();
|
||||
return \`
|
||||
return `
|
||||
<item>
|
||||
<title><![CDATA[\${task.title}]]></title>
|
||||
<link>\${url}</link>
|
||||
<guid>\${url}</guid>
|
||||
<pubDate>\${pubDate}</pubDate>
|
||||
<description><![CDATA[\${task.description}]]></description>
|
||||
<title><![CDATA[${task.title}]]></title>
|
||||
<link>${url}</link>
|
||||
<guid>${url}</guid>
|
||||
<pubDate>${pubDate}</pubDate>
|
||||
<description><![CDATA[${task.description}]]></description>
|
||||
<category>AI Bounty</category>
|
||||
<category>\${task.difficulty}</category>
|
||||
</item>\`;
|
||||
<category>${task.difficulty}</category>
|
||||
</item>`;
|
||||
}).join("");
|
||||
|
||||
const rssFeed = \`<?xml version="1.0" encoding="UTF-8" ?>
|
||||
const rssFeed = `<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title>VibeWork AI Agent Tasks</title>
|
||||
<link>https://agent.wooo.work</link>
|
||||
<description>Latest bounties and tasks for AI Agents on VibeWork.</description>
|
||||
<language>en-us</language>
|
||||
\${rssItems}
|
||||
${rssItems}
|
||||
</channel>
|
||||
</rss>\`;
|
||||
</rss>`;
|
||||
|
||||
return new NextResponse(rssFeed, {
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user