Sending Params Data to Server

My Code in routes.js is:-

{
path: ‘/manageitems/:itemId/’,

async: function (routeTo, routeFrom, resolve, reject) {
  // Requested route
  console.log(routeTo);
  
  // Get external data and return template7 template
        app.request.json('http://localhost/mobinsured/php/showcovers.php?itemId={{itemId}}',  
  function (itemscovered) {
	  var cont= itemscovered;
	  var cont2= JSON.stringify(cont);
  		var jsonp = $.parseJSON(cont2);
  //	var jsonp2 = $.parseJSON(obj2);
  

			var ids='';
    var products='';
   
    $.each (jsonp, function(i, field) {...............................................

My Server Code is:-

<?php include "db.php"; $str_json = file_get_contents('php://input'); //($_POST doesn't work here) $response = json_decode($str_json, true); // decoding received JSON to array $chr='{"itemId":"2"}'; $character = json_decode($chr); $idnr = $character->itemId;.... Where am i going wrong....

What is wrong? server error? do you get a response? need more info