const express = require('express');
const router = express.Router();
const locationController = require('../controllers/locationController');

const authenticateDevice = require('../middleware/auth');

// Route for background geolocation updates
// The plugin might POST to /api/locations
router.post('/api/locations', authenticateDevice, locationController.saveLocation);

module.exports = router;
