{"success":true,"message":"Sudeo Backend API","version":"2.0.0-cloudflare-complete","environment":"Cloudflare Workers + D1","timestamp":"2026-06-26T07:59:07.237Z","migration":"Complete functionality preserved from Express/Supabase","cors":"Fixed - Single origin properly selected","database":"D1 with full Prisma compatibility","endpoints":{"auth":{"signup":"POST /api/auth/signup","login":"POST /api/auth/login","refresh":"POST /api/auth/refresh","checkIdentity":"GET /api/auth/check-identity","changePassword":"PUT /api/auth/password","deleteAccount":"DELETE /api/auth/me","health":"GET /api/auth/health"},"profile":{"myProfile":"GET /api/me/profile","updateProfile":"PUT /api/me/profile","follow":"POST /api/me/follow?userId=<id>","unfollow":"DELETE /api/me/follow?userId=<id>","updateNotifications":"PATCH /api/me/follow/notifications?userId=<id>","followers":"GET /api/me/followers","following":"GET /api/me/following","notifications":"GET /api/me/notifications","unreadCount":"GET /api/me/notifications/unread-count","markRead":"POST /api/me/notifications/:id/read"},"public":{"profileById":"GET /api/profile/:userId","profileByUsername":"GET /api/profile/username/:username"},"products":{"list":"GET /api/product","create":"POST /api/product","getById":"GET /api/product/:id","update":"PUT /api/product/:id","delete":"DELETE /api/product/:id","library":"GET /api/product/library","batch":"GET /api/product/batch","like":"POST /api/product/:id/like","getLikes":"GET /api/product/:id/likes","comment":"POST /api/product/:id/comment","getComments":"GET /api/product/:id/comments","pause":"PUT /api/product/:id/pause","collaboration":"POST /api/product/:id/collaboration-withdrawal","emailQueue":{"status":"GET /api/product/email-queue/status","stats":"GET /api/product/email-queue/stats","retry":"POST /api/product/email-queue/retry"}},"search":{"search":"GET /api/search?q=<query>","health":"GET /api/search/health","stats":"GET /api/search/stats"},"recommendations":{"get":"GET /api/recommendations","section":"GET /api/recommendations/section","trackPlay":"POST /api/recommendations/track-play","reset":"POST /api/recommendations/reset","preferences":"GET /api/recommendations/preferences","updatePrefs":"PUT /api/recommendations/preferences","userRecs":"GET /api/recommendations/user/:userId","byUsername":"GET /api/recommendations/by-username/:username"},"messaging":{"conversations":"GET /api/messages","createConversation":"POST /api/messages/conversations","getMessages":"GET /api/messages/:conversationId","sendMessage":"POST /api/messages/:conversationId","markRead":"PUT /api/messages/:conversationId/read","deleteMessage":"DELETE /api/messages/message/:messageId","react":"POST /api/messages/:conversationId/react"},"contracts":{"list":"GET /api/contracts","create":"POST /api/contracts","getById":"GET /api/contracts/:contractId"},"subscriptions":{"plans":"GET /api/subscription/plans","userSubscription":"GET /api/subscription/user/subscription","checkout":"POST /api/subscription/checkout","cancel":"POST /api/subscription/cancel"},"uploads":{"generateUrl":"POST /api/upload/url","stats":"GET /api/upload/stats","health":"GET /api/upload/health"},"moderation":{"block":"POST /api/block","unblock":"DELETE /api/block","getBlocked":"GET /api/block","report":"POST /api/report","getReports":"GET /api/report"},"payments":{"paypalWebhook":"POST /api/paypal/webhooks"},"system":{"health":"GET /api/health","metrics":"GET /api/metrics"}}}