Browse Source

Поправил баг

Book Pauk 6 years ago
parent
commit
ad62419b70
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/index.js

+ 1 - 1
server/index.js

@@ -10,8 +10,8 @@ async function main() {
     const connPool = new SqliteConnectionPool(20, logger, config);
     await connPool.init();
 
+    app.use(express.static('public'));
     app.use(express.json());
-    express.static('public');
 
     require('./routes')(app, connPool, logger, config);