✏️ path.resolving the path from host OS root to the folder

This commit is contained in:
2022-03-29 20:41:13 -07:00
parent 49904c158c
commit 610b190f76

View File

@@ -56,11 +56,11 @@ export default class ApiService extends Service {
},
{
path: "/userdata",
use: [ApiGateway.serveStatic("/userdata")],
use: [ApiGateway.serveStatic(path.resolve("/userdata"))],
},
{
path: "/comics",
use: [ApiGateway.serveStatic("/comics")],
use: [ApiGateway.serveStatic(path.resolve("/comics"))],
},
{
path: "/logs",