change endpoint route
This commit is contained in:
@@ -69,7 +69,7 @@ const corsOptions = {
|
|||||||
Finally, for each route add `cors` as a middleware for the route passing it `corsOptions`:
|
Finally, for each route add `cors` as a middleware for the route passing it `corsOptions`:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
router.get("/admin/hello", cors(corsOptions), (req, res) => {
|
router.get("/store/hello", cors(corsOptions), (req, res) => {
|
||||||
//...
|
//...
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user