old_contents: /**
   * Created by vishwas3 on 3/8/17.
   */
  
  var express = require('express');
  var server = express();
  server.use('/', express.static(__dirname + '/build'));
  server.listen(8080);
new_contents: /**
   * Created by vishwas3 on 3/8/17.
   */
  
  var express = require('express');
  var request = require('request');
  var server = express();
  
  server.get('/api/notify/:fcm', function(req, res){
      console.log("REQUEST",req.params);
      var key = 'AAAAaxzCIxA:APA91bEjujdjrAqHhPb9MWtEpaMCKxa0i--K4KPfR5dtXqkhlmbtLOqm705_-NJ6kUOYqRwOBvurJId9yyr2UNkClgltWARrjYlcByXGE5wjaIMdBNZLf8irwiubOej79v461wnHJrM78LoZkRyLW4Wp2cNRYS1Vcg';
      var to = req.params.fcm;
      to = "f1WEClQziU4:APA91bENUyx_79nE1c8lEXnHfzu38SlkqIF0c0FrrHw58SR0byKRrf3WNhU_h82QkOMexLKOaJfakGsh7cDViKGD39RpP-1I_TZfsLyANKo1qRp5pT68L8wN-QlxXPnvZFksUh7kqbqY";
      var notification = {
          'title': 'Portugal vs. Denmark',
          'body': '5 to 1',
          'icon': 'firebase-logo.png',
          'click_action': 'http://localhost:8080'
      };
  
      request({
          url: 'https://fcm.googleapis.com/fcm/send',
          method: 'POST',
          headers:  {
              'Authorization': 'key=' + key,
              'Content-Type': 'application/json'
          },
          body: JSON.stringify({
              'notification': notification,
              'to': to
          })
      }, function (error, response, body) {
          if (error) {
              console.log("Error in post request!",error);
              res.send('Send notification response: ', error);
              res.status(500).send(error);
          } else {
              console.log("No error, body.",body);
              res.status(200).send(body);
          }
      });
  });
  
  server.use('/', express.static(__dirname + '/build'));
  
  server.listen(8080);
  
subject: add fcm notify route