Add publish API with modular service layer

Add tRPC publish endpoint, project version parsing, config CRUD, and
client services for Modrinth/CurseForge integration.
This commit is contained in:
CPTProgrammer
2026-07-08 07:05:48 +08:00
parent e23a1204e8
commit db1cb28296
8 changed files with 738 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
import { appRouter } from "@/services/publish";
const handler = (req: Request) =>
fetchRequestHandler({
endpoint: "/api/publish",
req,
router: appRouter,
createContext: () => ({}),
});
export { handler as GET, handler as POST };