فهرست منبع

Couple small fixes to test

Lee Morgan 6 سال پیش
والد
کامیت
0368503937
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      controllers/otherData.js
  2. 1 1
      routes.js

+ 1 - 1
controllers/otherData.js

@@ -212,7 +212,7 @@ module.exports = {
 
     //Get - Redirects user to Clover OAuth page
     clover: function(req, res){
-        return res.redirect(`${process.env.CLOVER_ADDRESS}/oauth/authorize?client_id=${process.env.SUBLINE_CLOVER_APPID}&redirect_uri=localhost:8080/cloverauth`);
+        return res.redirect(`${process.env.CLOVER_ADDRESS}/oauth/authorize?client_id=${process.env.SUBLINE_CLOVER_APPID}&redirect_uri=localhost:8080/cloverauth/`);
     },
 
     cloverAuth: function(req, res){

+ 1 - 1
routes.js

@@ -35,5 +35,5 @@ module.exports = function(app){
     app.get("/logout", otherData.logout);
     app.post("/email", otherData.checkUniqueEmail);
     app.get("/cloverlogin", otherData.clover);
-    app.get("/cloverauth", otherData.cloverAuth);
+    app.get("/cloverauth*", otherData.cloverAuth);
 }