From 7228e6d11178dfa715fc2ae4e834dec129248214 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 29 Mar 2018 20:34:39 +0900 Subject: [PATCH] :v: --- src/server/api/{server.ts => index.ts} | 0 src/server/file/{server.ts => index.ts} | 0 src/server/index.ts | 6 +++--- src/server/web/{server.ts => index.ts} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename src/server/api/{server.ts => index.ts} (100%) rename src/server/file/{server.ts => index.ts} (100%) rename src/server/web/{server.ts => index.ts} (100%) diff --git a/src/server/api/server.ts b/src/server/api/index.ts similarity index 100% rename from src/server/api/server.ts rename to src/server/api/index.ts diff --git a/src/server/file/server.ts b/src/server/file/index.ts similarity index 100% rename from src/server/file/server.ts rename to src/server/file/index.ts diff --git a/src/server/index.ts b/src/server/index.ts index 3908b8a52c..fe22d9c9b3 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -51,9 +51,9 @@ app.use((req, res, next) => { /** * Register modules */ -app.use('/api', require('./api/server')); -app.use('/files', require('./file/server')); -app.use(require('./web/server')); +app.use('/api', require('./api')); +app.use('/files', require('./file')); +app.use(require('./web')); function createServer() { if (config.https) { diff --git a/src/server/web/server.ts b/src/server/web/index.ts similarity index 100% rename from src/server/web/server.ts rename to src/server/web/index.ts