<?php

use CodeIgniter\Router\RouteCollection;

/**
 * @var RouteCollection $routes
 */
$routes->get('/', 'Home::index');

// Home routes for data fetching
$routes->post('home/get-anganwadi', 'Home::getAnganwadiByDistrict');
$routes->post('home/get-children-data', 'Home::getChildrenData');

// Import routes
$routes->get('import/monthly-outreach', 'ImportController::index');
$routes->post('import/csv', 'ImportController::importCsv');
$routes->get('import/download-template', 'ImportController::downloadTemplate');
