add static file

This commit is contained in:
2024-01-29 13:19:42 +07:00
parent 33f3b64d17
commit bbdb4c2963
6 changed files with 3 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

+3
View File
@@ -51,6 +51,9 @@ var corsOptions = {
// app.use(cors(corsOptions));
app.use(cors(corsOptions));
// add static file
app.use(express.static('public'));
// parse requests of content-type - application/json
app.use(bodyParser.json());