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
This commit is contained in:
William Chargin 2018-06-30 15:11:52 -07:00 committed by GitHub
parent d627475119
commit bb75cc54cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

View File

@ -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"),

View File

@ -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;