import api from './api';

const scannerService = {
    getSites:  ()           => api.get('/scanner/sites').then(r => r.data.data),
    getAssets: (params)     => api.get('/scanner/assets', { params }).then(r => r.data.data),
    getAlerts: (params)     => api.get('/scanner/alerts', { params }).then(r => r.data.data),
    getStats:  ()           => api.get('/scanner/stats').then(r => r.data.data),
};

export default scannerService;
