No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mockDiscoveryServer.js 423B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const express = require("express");
  4. const app = express();
  5. app.get("/backend.yaml", (req, res) => {
  6. res.setHeader("content-type", "text/yaml");
  7. res.send(process.env.BACKEND);
  8. });
  9. let port = 8080;
  10. if (process.env.ADMIN_PORT) {
  11. port = Number.parseInt(process.env.ADMIN_PORT);
  12. }
  13. console.error("Serving at port", port);
  14. app.listen(port);