aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.ts b/server.ts
index a6a9fcb02..1ba208c28 100644
--- a/server.ts
+++ b/server.ts
@@ -24,7 +24,7 @@ process.title = 'peertube'
24const app = express() 24const app = express()
25 25
26// ----------- Database ----------- 26// ----------- Database -----------
27// Do not use barels because we don't want to load all modules here (we need to initialize database first) 27// Do not use barrels because we don't want to load all modules here (we need to initialize database first)
28import { logger } from './server/helpers/logger' 28import { logger } from './server/helpers/logger'
29import { API_VERSION, CONFIG } from './server/initializers/constants' 29import { API_VERSION, CONFIG } from './server/initializers/constants'
30// Initialize database and models 30// Initialize database and models
@@ -55,7 +55,7 @@ import { apiRouter, clientsRouter, staticRouter } from './server/controllers'
55 55
56// ----------- App ----------- 56// ----------- App -----------
57 57
58// Enable cors for develop 58// Enable CORS for develop
59if (isTestInstance()) { 59if (isTestInstance()) {
60 app.use(cors({ 60 app.use(cors({
61 origin: 'http://localhost:3000', 61 origin: 'http://localhost:3000',