From 9f25cc6d5d1c08cc7d1a4fd583a491680da9cd6a Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 15 Oct 2020 17:47:20 -0500 Subject: [PATCH] Move providers from `app` to `routes` --- src/node/entry.ts | 12 ++++++------ src/node/{app => routes}/health.ts | 0 src/node/{app => routes}/login.ts | 0 src/node/{app => routes}/proxy.ts | 0 src/node/{app => routes}/static.ts | 0 src/node/{app => routes}/update.ts | 0 src/node/{app => routes}/vscode.ts | 0 test/update.test.ts | 2 +- 8 files changed, 7 insertions(+), 7 deletions(-) rename src/node/{app => routes}/health.ts (100%) rename src/node/{app => routes}/login.ts (100%) rename src/node/{app => routes}/proxy.ts (100%) rename src/node/{app => routes}/static.ts (100%) rename src/node/{app => routes}/update.ts (100%) rename src/node/{app => routes}/vscode.ts (100%) diff --git a/src/node/entry.ts b/src/node/entry.ts index 826d9a484..630e4b0b7 100644 --- a/src/node/entry.ts +++ b/src/node/entry.ts @@ -5,12 +5,12 @@ import http from "http" import * as path from "path" import { CliMessage, OpenCommandPipeArgs } from "../../lib/vscode/src/vs/server/ipc" import { plural } from "../common/util" -import { HealthHttpProvider } from "./app/health" -import { LoginHttpProvider } from "./app/login" -import { ProxyHttpProvider } from "./app/proxy" -import { StaticHttpProvider } from "./app/static" -import { UpdateHttpProvider } from "./app/update" -import { VscodeHttpProvider } from "./app/vscode" +import { HealthHttpProvider } from "./routes/health" +import { LoginHttpProvider } from "./routes/login" +import { ProxyHttpProvider } from "./routes/proxy" +import { StaticHttpProvider } from "./routes/static" +import { UpdateHttpProvider } from "./routes/update" +import { VscodeHttpProvider } from "./routes/vscode" import { DefaultedArgs, optionDescriptions, diff --git a/src/node/app/health.ts b/src/node/routes/health.ts similarity index 100% rename from src/node/app/health.ts rename to src/node/routes/health.ts diff --git a/src/node/app/login.ts b/src/node/routes/login.ts similarity index 100% rename from src/node/app/login.ts rename to src/node/routes/login.ts diff --git a/src/node/app/proxy.ts b/src/node/routes/proxy.ts similarity index 100% rename from src/node/app/proxy.ts rename to src/node/routes/proxy.ts diff --git a/src/node/app/static.ts b/src/node/routes/static.ts similarity index 100% rename from src/node/app/static.ts rename to src/node/routes/static.ts diff --git a/src/node/app/update.ts b/src/node/routes/update.ts similarity index 100% rename from src/node/app/update.ts rename to src/node/routes/update.ts diff --git a/src/node/app/vscode.ts b/src/node/routes/vscode.ts similarity index 100% rename from src/node/app/vscode.ts rename to src/node/routes/vscode.ts diff --git a/test/update.test.ts b/test/update.test.ts index 9e27eefaf..093429be3 100644 --- a/test/update.test.ts +++ b/test/update.test.ts @@ -2,8 +2,8 @@ import * as assert from "assert" import * as fs from "fs-extra" import * as http from "http" import * as path from "path" -import { LatestResponse, UpdateHttpProvider } from "../src/node/app/update" import { AuthType } from "../src/node/cli" +import { LatestResponse, UpdateHttpProvider } from "../src/node/routes/update" import { SettingsProvider, UpdateSettings } from "../src/node/settings" import { tmpdir } from "../src/node/util"