cc-core-cli 1.0.117 → 1.0.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/template/core/_gitignore
CHANGED
|
@@ -17,6 +17,7 @@ storage/public/system/*
|
|
|
17
17
|
!storage/public/system/menu/
|
|
18
18
|
storage/public/system/menu/*
|
|
19
19
|
!storage/public/system/menu/icons/
|
|
20
|
+
!storage/documents/
|
|
20
21
|
|
|
21
22
|
# Generated by MacOS
|
|
22
23
|
.DS_Store
|
|
@@ -39,3 +40,9 @@ Thumbs.db
|
|
|
39
40
|
|
|
40
41
|
# Environment file
|
|
41
42
|
.env
|
|
43
|
+
|
|
44
|
+
# Log fiels
|
|
45
|
+
*.log
|
|
46
|
+
|
|
47
|
+
# Package lock file
|
|
48
|
+
package-lock.json
|
|
@@ -253,6 +253,14 @@ async function bootstrap() {
|
|
|
253
253
|
prefix: `/public`
|
|
254
254
|
});
|
|
255
255
|
|
|
256
|
+
// Serve specific file for "/"
|
|
257
|
+
fastify.get("/", (request, reply) => {
|
|
258
|
+
console.log("Serving / from custom route");
|
|
259
|
+
reply
|
|
260
|
+
.type("text/html")
|
|
261
|
+
.sendFile("index.html", path.join(process.cwd(), "storage/documents"));
|
|
262
|
+
});
|
|
263
|
+
|
|
256
264
|
_.set(CONST, "app", app);
|
|
257
265
|
await initial(app);
|
|
258
266
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<title>Document</title>
|
|
8
|
+
</head>
|
|
9
|
+
|
|
10
|
+
<body>
|
|
11
|
+
<h1>Welcome to Commerce Suite.</h1>
|
|
12
|
+
</body>
|
|
13
|
+
|
|
14
|
+
</html>
|