var lroParameterizedEndpoints = function()

in legacy/routes/lroParameterizedEndpoints.js [5:22]


var lroParameterizedEndpoints = function (coverage) {
  coverage["LROParameterizedEndpoint"] = 0;

  router.post("/", function (req, res, next) {
    var pollingUri = "/lroParameterizedEndpoints/results/1";
    var headers = {
      Location: pollingUri,
    };

    res.set(headers).status(202).end();
  });

  router.get("/results/:resultNumber", function (req, res, next) {
    coverage["LROParameterizedEndpoint"]++;
    res.status(200).json("success");
    return;
  });
};