import{t as e}from"./parse-date-BdYTmLpo.mjs";import{t}from"./got-BBDj7u1e.mjs";import{t as n}from"./timezone-keeL11Io.mjs";import{t as r}from"./utils-_AObprhT.mjs";const i={path:`/newsflash`,categories:[`new-media`],example:`/odaily/newsflash`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`0daily.com/newsflash`,`0daily.com/`]}],name:`快讯`,maintainers:[`nczitzk`],handler:a,url:`0daily.com/newsflash`};async function a(i){let a=(await t({method:`get`,url:`${r}/api/pp/api/info-flow/newsflash_columns/newsflashes?b_id=&per_page=${i.req.query(`limit`)??100}`})).data.data.items.map(t=>({title:t.title,link:t.news_url,pubDate:n(e(t.published_at),8),description:`<p>${t.description}</p>`}));return{title:`快讯 - Odaily星球日报`,link:`${r}/newsflash`,item:a}}export{i as route};