Added ability to get all maps at once.

This commit is contained in:
BurnyLlama 2021-10-11 19:55:44 +02:00
parent 5ecb679fd9
commit e4270f4f3b

View File

@ -37,6 +37,21 @@ mapApi.get(
}
)
mapApi.get(
'/getAll',
(req, res) => {
Level.find({}).then(
maps => {
res.json({
success: true,
response: maps
})
}
)
}
)
mapApi.get(
'/category/:category',
(req, res) => {