From bb75cc54cd75ee00b9bd730501aebdd886798218 Mon Sep 17 00:00:00 2001 From: William Chargin Date: Sat, 30 Jun 2018 15:11:52 -0700 Subject: [PATCH] Move Express server API from V1 to bridge (#469) Test Plan: `yarn start` and `node bin/sourcecred.js start` both still work. wchargin-branch: bridge-api --- config/paths.js | 2 +- src/{v1 => bridge}/app/apiApp.js | 0 src/v1/cli/commands/start.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{v1 => bridge}/app/apiApp.js (100%) diff --git a/config/paths.js b/config/paths.js index 15837ac..4f159c2 100644 --- a/config/paths.js +++ b/config/paths.js @@ -58,7 +58,7 @@ module.exports = { "commands/graph": resolveApp("src/v1/cli/commands/graph.js"), "commands/plugin-graph": resolveApp("src/v1/cli/commands/pluginGraph.js"), "commands/start": resolveApp("src/v1/cli/commands/start.js"), - apiApp: resolveApp("src/v1/app/apiApp.js"), + apiApp: resolveApp("src/bridge/app/apiApp.js"), // sourcecredV3: resolveApp("src/v3/cli/sourcecred.js"), "commands/load-plugin-v3": resolveApp("src/v3/cli/commands/loadPlugin.js"), diff --git a/src/v1/app/apiApp.js b/src/bridge/app/apiApp.js similarity index 100% rename from src/v1/app/apiApp.js rename to src/bridge/app/apiApp.js diff --git a/src/v1/cli/commands/start.js b/src/v1/cli/commands/start.js index 1bed719..2049cc6 100644 --- a/src/v1/cli/commands/start.js +++ b/src/v1/cli/commands/start.js @@ -5,7 +5,7 @@ import chalk from "chalk"; import fs from "fs"; import {choosePort} from "react-dev-utils/WebpackDevServerUtils"; -import apiApp from "../../app/apiApp"; +import apiApp from "../../../bridge/app/apiApp"; import {sourcecredDirectoryFlag} from "../common"; const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 4000;