Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Deploy a node.js file and create multiple proxies for it based on the path

Not applicable

Suppose I have a simple node.js file as follows:

var express=require('express')

var app=express()

app.get('/login',function(req,res){ res.send('Welcome to login!') })

app.post('/login',function(req,res){

res.send('Successful!')

})

app.get('/register',function(req,res){

res.send('')

})

app.listen(8081)

Now when I deploy this on Apigee, I want to create multiple proxies for this file based on the path. Like I want to create a separate proxy for /login and /register.

Can someone help me figure this out?

0 2 606
2 REPLIES 2
Top Solution Authors