2023-09-13 16:59:17 +02:00
|
|
|
import { Router } from 'express'
|
|
|
|
const router = Router()
|
|
|
|
|
|
|
|
// MAPS
|
|
|
|
import { getAllMaps } from '../controllers/maps.js'
|
|
|
|
import { getMapByName } from '../controllers/maps.js'
|
|
|
|
|
|
|
|
router.get('/maps', getAllMaps)
|
|
|
|
router.get('/map/:mapName', getMapByName)
|
|
|
|
|
|
|
|
// POINTS
|
2023-09-14 14:25:53 +02:00
|
|
|
import { createPoint } from '../controllers/points.js'
|
|
|
|
router.post('/point/add', createPoint)
|
2023-09-13 16:59:17 +02:00
|
|
|
|
|
|
|
export default router
|