Commit f53cb8e1 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

api call redirect fixed

parent 6f888186
Pipeline #358 passed with stage
in 8 seconds
......@@ -5,7 +5,7 @@ module.exports = function (app) {
//console.log(dbconn);
//var con = dbconn.connection
app.get('/account/api/v1/profile', function (req, res) {
app.get('/api/v1/profile', function (req, res) {
if (req.isAuthenticated()) {
// read data based on ID
dbconn.user.query('SELECT title, firstname, lastname, email, industry, organisation, speciality FROM user WHERE email="'+req.user.email+'"', function (err, rows, fields) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment