Chysev commited on
Commit
7f52b00
·
verified ·
1 Parent(s): a1fca9e

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -0
index.js CHANGED
@@ -7,6 +7,7 @@ const app = express();
7
  const port = 7860;
8
 
9
  app.use(cors());
 
10
 
11
  // Test Express API GET method with parameters
12
  app.get('/api/test', async (req, res) => {
 
7
  const port = 7860;
8
 
9
  app.use(cors());
10
+ app.use(express.json());
11
 
12
  // Test Express API GET method with parameters
13
  app.get('/api/test', async (req, res) => {