Added ability to get all maps at once.
This commit is contained in:
parent
5ecb679fd9
commit
e4270f4f3b
15
api/maps.js
15
api/maps.js
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user