mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 15:51:01 +08:00
- Added i18n module to nuxt.config.ts with English and Traditional Chinese locales. - Created locale files for English, Traditional Chinese, and German. - Updated default layout to use script setup syntax. - Modified index page structure for future content. - Implemented API endpoint for object storage file redirection. - Removed unused CORS middleware. - Created a new feed route handler.
6 lines
249 B
TypeScript
6 lines
249 B
TypeScript
import s3 from "~/server/components/s3";
|
|
|
|
export default defineEventHandler(async (event) => {
|
|
const slug = getRouterParam(event, "slug");
|
|
return sendRedirect(event, `${process.env.S3_ENDPOINT}/${process.env.S3_BUCKETNAME}/${slug}`, 302);
|
|
}) |