2017-08-02 62 views

回答

0

是有可能有兩個途徑

var express = require('express'); 
 
var app = express(); 
 

 
app.get("/auth/token/exchange/:token", function(req, res) { 
 
    res.send(req.params) 
 
}) 
 
app.get("/auth/token/:token", function(req, res) { 
 
    res.send(req.params) 
 
}) 
 

 

 
app.listen(4000, function() { 
 
    console.log("Express server listening on port 4000"); 
 
});

相關問題