Book Pauk 6 жил өмнө
parent
commit
ad62419b70
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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);