-
Notifications
You must be signed in to change notification settings - Fork 7
CJS server side example code? #71
Copy link
Copy link
Open
Description
ChatGPT gave me something like
const express = require('express').default;
const ziti = require('@openziti/ziti-sdk-nodejs').default;
// Your existing ExpressJS setup
const app = express();
// ... (other middleware, routes, etc.)
// Wrap your existing ExpressJS app with Ziti
const zitiApp = ziti.express(app, 'yourZitiServiceName');
// Listen
zitiApp.listen(3000, () => {
console.log('Server running on http://localhost:3000/');
});
when I told it I want to integrate into Owasp Juice Shop app. But is there a more concrete example.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels