cc-core-cli 1.0.117 → 1.0.118

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-core-cli",
3
- "version": "1.0.117",
3
+ "version": "1.0.118",
4
4
  "description": "Command Line Interface tool for generating project templates for the (Your Platform's Name) platform.",
5
5
  "main": "bin/index.js",
6
6
  "scripts": {
@@ -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
@@ -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>