@@ -130,8 +130,8 @@ app.post('/api/stripe-simple/create-checkout', async (c) => {
130130 } ,
131131 body : new URLSearchParams ( {
132132 'mode' : 'subscription' ,
133- 'success_url' : 'https://convert2doc.com /dashboard?success=true' ,
134- 'cancel_url' : 'https://convert2doc.com /register?canceled=true' ,
133+ 'success_url' : 'https://qrypt.chat /dashboard?success=true' ,
134+ 'cancel_url' : 'https://qrypt.chat /register?canceled=true' ,
135135 'customer_email' : email , // Pre-fill customer email in checkout
136136 'line_items[0][price]' : priceId ,
137137 'line_items[0][quantity]' : '1'
@@ -178,8 +178,8 @@ app.post('/api/stripe-direct/create-checkout', async (c) => {
178178 // Directly create session with minimal params
179179 const session = await stripeDirectClient . checkout . sessions . create ( {
180180 mode : 'subscription' ,
181- success_url : 'https://convert2doc.com /dashboard?success=true' ,
182- cancel_url : 'https://convert2doc.com /register?canceled=true' ,
181+ success_url : 'https://qrypt.chat /dashboard?success=true' ,
182+ cancel_url : 'https://qrypt.chat /register?canceled=true' ,
183183 customer_email : email , // Pre-fill customer email in checkout
184184 line_items : [ { price : priceId , quantity : 1 } ]
185185 } ) ;
@@ -216,7 +216,7 @@ app.get('/', async (c) => {
216216 // Otherwise, return a JSON response
217217 return c . json ( {
218218 status : 'ok' ,
219- message : 'Document generation service is running' ,
219+ message : 'E2E encrypted chat service is running' ,
220220 version : process . env . npm_package_version || '1.0.0'
221221 } ) ;
222222} ) ;
@@ -290,14 +290,9 @@ const startServer = (portToUse) => {
290290 } , ( info ) => {
291291 console . log ( `Server running at http://localhost:${ info . port } ` ) ;
292292 console . log ( 'Available endpoints:' ) ;
293- console . log ( `- HTML to PDF: http://localhost:${ info . port } /api/1/html-to-pdf` ) ;
294- console . log ( `- HTML to DOC: http://localhost:${ info . port } /api/1/html-to-doc` ) ;
295- console . log ( `- HTML to Excel: http://localhost:${ info . port } /api/1/html-to-excel` ) ;
296- console . log ( `- HTML to PowerPoint: http://localhost:${ info . port } /api/1/html-to-ppt` ) ;
297- console . log ( `- HTML to EPUB: http://localhost:${ info . port } /api/1/html-to-epub` ) ;
298- console . log ( `- HTML to Markdown: http://localhost:${ info . port } /api/1/html-to-markdown` ) ;
299- console . log ( `- Markdown to HTML: http://localhost:${ info . port } /api/1/markdown-to-html` ) ;
300- console . log ( `- Document History: http://localhost:${ info . port } /api/1/document-history` ) ;
293+ console . log ( `- WebSocket: http://localhost:${ info . port } /api/1/ws` ) ;
294+ console . log ( `- Chat API: http://localhost:${ info . port } /api/1/chat` ) ;
295+ console . log ( `- Chat UI: http://localhost:${ info . port } /chat` ) ;
301296 console . log ( `- Subscription: http://localhost:${ info . port } /api/1/subscription` ) ;
302297 console . log ( `- Subscription Status: http://localhost:${ info . port } /api/1/subscription-status` ) ;
303298 console . log ( `- Stripe Checkout: http://localhost:${ info . port } /api/1/payments/stripe/create-checkout-session` ) ;
@@ -306,9 +301,6 @@ const startServer = (portToUse) => {
306301 console . log ( `- Stripe Cancel: http://localhost:${ info . port } /api/1/payments/stripe/cancel-subscription` ) ;
307302 console . log ( `- Payment Callback: http://localhost:${ info . port } /api/1/payments/cryptapi/callback` ) ;
308303 console . log ( `- Payment Logs: http://localhost:${ info . port } /api/1/payments/cryptapi/logs` ) ;
309- console . log ( `- WebSocket: http://localhost:${ info . port } /api/1/ws` ) ;
310- console . log ( `- Chat API: http://localhost:${ info . port } /api/1/chat` ) ;
311- console . log ( `- Chat UI: http://localhost:${ info . port } /chat` ) ;
312304 console . log ( `- Web interface: http://localhost:${ info . port } ` ) ;
313305
314306 // Create a separate WebSocket server on a different port
0 commit comments