Skip to content

Commit

Permalink
Switched to Post Request
Browse files Browse the repository at this point in the history
* Switched to Post Requests, can use SSL now
* Switched to Node.js 0.10.x, Node.js 0.12.0 has same problem as io.js 1.2.0
* Version 0.13.32
  • Loading branch information
aneesh-neelam committed Feb 17, 2015
1 parent b692746 commit ec50d5d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "VITacademics",
"version": "0.13.31",
"version": "0.13.32",
"description": "VITacademics Backend and Web App",
"bugs": {
"url": "https://github.com/aneesh-neelam/VITacademics/issues",
"email": "neelam.aneesh@gmail.com"
},
"homepage": "http://vitacademics-dev.herokuapp.com/",
"homepage": "https://vitacademics-dev.herokuapp.com/",
"authors": [
"Aneesh Neelam <neelam.aneesh@gmail.com>",
"Karthik Balakrishnan <karthikb351@gmail.com>",
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "VITacademics",
"version": "0.13.31",
"version": "0.13.32",
"description": "VITacademics Backend and Web App",
"homepage": "http://vitacademics-dev.herokuapp.com/",
"homepage": "https://vitacademics-dev.herokuapp.com/",
"bugs": {
"url": "https://github.com/aneesh-neelam/VITacademics/issues",
"email": "neelam.aneesh@gmail.com"
Expand Down Expand Up @@ -50,15 +50,15 @@
"bower": "~1.3.12",
"cheerio": "~0.18.0",
"cookie": "~0.1.2",
"cookie-parser": "~1.3.3",
"cookie-parser": "~1.3.4",
"ejs": "~2.2.4",
"express": "~4.11.2",
"express-mongo-db": "^1.0.0",
"jackrabbit": "^3.0.8",
"memory-cache": "~0.0.5",
"moment": "^2.9.0",
"moment-timezone": "^0.3.0",
"mongodb": "~1.4.30",
"mongodb": "~1.4.31",
"morgan": "~1.5.1",
"newrelic": "~1.16.2",
"node-ga": "~0.1.1",
Expand All @@ -79,7 +79,7 @@
}
],
"engines": {
"node": "0.12.x"
"node": "0.10.x"
},
"devDependencies": {
"mocha": "~2.1.0"
Expand Down
32 changes: 16 additions & 16 deletions routes/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ var friendsGenerate = require(path.join(__dirname, '..', 'api', 'friends', 'gene
var friendsShare = require(path.join(__dirname, '..', 'api', 'friends', 'share'));


router.get('/login', function (req, res) {
router.post('/login', function (req, res) {
var app = {
db: req.db,
queue: req.queue
};
var data = {
reg_no: req.query.regno.toUpperCase(),
dob: req.query.dob,
reg_no: req.body.regno.toUpperCase(),
dob: req.body.dob,
campus: req.originalUrl.split('/')[3].toLowerCase()
};
var onGet = function (err, response) {
Expand All @@ -43,14 +43,14 @@ router.get('/login', function (req, res) {
loginAuto.get(app, data, onGet);
});

router.get('/refresh', function (req, res) {
router.post('/refresh', function (req, res) {
var app = {
db: req.db,
queue: req.queue
};
var data = {
reg_no: req.query.regno.toUpperCase(),
dob: req.query.dob,
reg_no: req.body.regno.toUpperCase(),
dob: req.body.dob,
campus: req.originalUrl.split('/')[3].toLowerCase()
};
var onGet = function (err, response) {
Expand All @@ -59,14 +59,14 @@ router.get('/refresh', function (req, res) {
dataAggregate.get(app, data, onGet);
});

router.get('/grades', function (req, res) {
router.post('/grades', function (req, res) {
var app = {
db: req.db,
queue: req.queue
};
var data = {
reg_no: req.query.regno.toUpperCase(),
dob: req.query.dob,
reg_no: req.body.regno.toUpperCase(),
dob: req.body.dob,
campus: req.originalUrl.split('/')[3].toLowerCase()
};
var onGet = function (err, response) {
Expand All @@ -75,14 +75,14 @@ router.get('/grades', function (req, res) {
dataGrades.get(app, data, onGet);
});

router.get('/token', function (req, res) {
router.post('/token', function (req, res) {
var app = {
db: req.db,
queue: req.queue
};
var data = {
reg_no: req.query.regno.toUpperCase(),
dob: req.query.dob,
reg_no: req.body.regno.toUpperCase(),
dob: req.body.dob,
campus: req.originalUrl.split('/')[3].toLowerCase()
};
var onGet = function (err, response) {
Expand All @@ -91,18 +91,18 @@ router.get('/token', function (req, res) {
friendsGenerate.get(app, data, onGet);
});

router.get('/share', function (req, res) {
router.post('/share', function (req, res) {
var token;
var reg_no;
if (req.query.token) token = req.query.token.toUpperCase();
if (req.query.regno) reg_no = req.query.regno.toUpperCase();
if (req.body.token) token = req.body.token.toUpperCase();
if (req.body.regno) reg_no = req.body.regno.toUpperCase();
var app = {
db: req.db,
queue: req.queue
};
var data = {
reg_no: reg_no,
dob: req.query.dob,
dob: req.body.dob,
token: token,
campus: req.originalUrl.split('/')[3].toLowerCase()
};
Expand Down

0 comments on commit ec50d5d

Please sign in to comment.