Skip to content

Commit c784a49

Browse files
committed
Don't required authentication from /available-layers endpoint
1 parent 228dbeb commit c784a49

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

server/src/routes/map.routes.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { ensureAuthenticated } from '@src/auth';
21
import { validateRequest } from '@src/utils';
32
import { Router } from 'express';
43
import asyncHandler from 'express-async-handler';
@@ -9,13 +8,12 @@ const router = Router();
98

109
router.get(
1110
'/available-layers',
12-
ensureAuthenticated(),
1311
validateRequest([query('url').isString()]),
1412
asyncHandler(async (req, res) => {
1513
const mapUrl = decodeURIComponent(req.query.url.toString());
1614
const layers = await getAvailableMapLayers(mapUrl);
1715
res.json(layers);
18-
})
16+
}),
1917
);
2018

2119
export default router;

0 commit comments

Comments
 (0)