refactor: update Elysia initialization with API prefix and fix API destination in Next.js config

feat: add targetId for Pixiv and Twitter uploads in post routes
style: adjust filter container margin and button styles for improved layout
This commit is contained in:
암냥 2026-04-16 23:36:02 +09:00
commit c6fa45bbc0
No known key found for this signature in database
4 changed files with 7 additions and 4 deletions

View file

@ -5,7 +5,7 @@ import openapi from "@elysiajs/openapi";
await mongoose.connect(config.mongodb.uri);
const app = new Elysia()
const app = new Elysia({prefix: "/api"})
.use(openapi())
.get("/", () => "어...")

View file

@ -422,6 +422,7 @@ export default new Elysia({ prefix: "/post" })
role: requester.role,
},
action: "post.upload.pixiv",
targetId: pixivData.illust_id,
targetType: "post",
summary: `${requester.username} uploaded Pixiv media`,
detail: {
@ -537,6 +538,7 @@ export default new Elysia({ prefix: "/post" })
role: requester.role,
},
action: "post.upload.twitter",
targetId: tweetData.tweet.id,
targetType: "post",
summary: `${requester.username} uploaded Twitter media`,
detail: {