@@ -32,10 +32,17 @@ app.use(
3232
3333// Serve static files
3434app . use ( "/dist" , express . static ( distPath ) ) ;
35+ app . use ( "/assets" , express . static ( path . join ( __dirname , "../samples/assets" ) ) ) ;
36+ app . use ( "/css" , express . static ( path . join ( __dirname , "../samples/css" ) ) ) ;
37+ app . use ( "/font" , express . static ( path . join ( __dirname , "../samples/font" ) ) ) ;
3538
3639// Routes
3740app . get ( "/" , ( req , res ) => {
38- res . sendFile ( path . join ( __dirname , "../samples/hello-world.html" ) ) ;
41+ res . sendFile ( path . join ( __dirname , "../samples/demo.html" ) ) ;
42+ } ) ;
43+
44+ app . get ( "/demo" , ( req , res ) => {
45+ res . sendFile ( path . join ( __dirname , "../samples/demo.html" ) ) ;
3946} ) ;
4047
4148app . get ( "/hello-world" , ( req , res ) => {
@@ -122,6 +129,7 @@ httpsServer.listen(httpsPort, "0.0.0.0", () => {
122129 } ) ;
123130 console . log ( "\x1b[36m Available Pages:\x1b[0m" ) ;
124131 console . log ( "\x1b[90m-------------------\x1b[0m" ) ;
132+ console . log ( "\x1b[33m Demo:\x1b[0m /demo" ) ;
125133 console . log ( "\x1b[33m Hello World:\x1b[0m /hello-world\n" ) ;
126134
127135 console . log ( "\x1b[90mPress Ctrl+C to stop the server\x1b[0m\n" ) ;
0 commit comments