landPage:
    path: /page
    controller: App\Controller\Application::index
    methods: [GET]

landPageData:
    path: /page/data
    controller: App\Controller\Land\Main::pageData
    methods: [GET]

landPost:
    path: /post
    controller: App\Controller\Land\Main::post
    methods: [POST]

landDebtType:
    path: /debtbtype/{land_id}/{type_id}
    controller: App\Controller\Application::index
    methods: [GET]
    requirements:
        type_id: \d+
        land_id: \d+
    defaults:
        type_id: -1
        land_id: -1

landDebtTypeData:
    path: /debtbbytype/data/{land_id}/{type_id}
    controller: App\Controller\Land\Main::debtType
    methods: [GET]
    requirements:
        type_id: \d+
        land_id: \d+
    defaults:
        type_id: -1
        land_id: -1

landOwnersPage:
    path: /owners/page
    controller: App\Controller\Application::index
    methods: [GET]

landOwnersData:
    path: /owners/data
    controller: App\Controller\Land\Owner::data
    methods: [GET]

landOwnerForm:
    path: /owner/form/{id}
    controller: App\Controller\Land\Owner::form
    methods: [GET]
    requirements:
        id: \d+|-1
    defaults:
        id: -1

landOwnerPost:
    path: /owner/post
    controller: App\Controller\Land\Owner::post
    methods: [POST]

landOwnerDelete:
    path: /owner/delete/{id}
    controller: App\Controller\Land\Owner::delete
    methods: [GET]
    requirements:
        id: \d+
    defaults:
        id: -1

landDebtInvoiceChoices:
    path: /debt/invoice/choices/{land_id}/{charge_type_id}
    controller: App\Controller\Land\Main::debtInvoiceChoices
    methods: [GET]
    requirements:
        land_id: \d+
        charge_type_id: \d+
    defaults:
        land_id: -1
        charge_type_id: -1

landDebt:
    path: /debt
    controller: App\Controller\Land\Main::debt
    methods: [POST]

landDebtForm:
    path: /debt/form
    controller: App\Controller\Land\Main::debtForm
    methods: [GET]

landChargesType:
    path: /charges/{land_id}/{type_id}/{year}
    controller: App\Controller\Land\Main::chargesByType
    methods: [GET]
    requirements:
        type_id: \d+
        year: \d+
        land_id: \d+
    defaults:
        type_id: -1
        year: -1
        land_id: -1

landPrePayTypeData:
    path: /prepaytype/data/{land_id}/{type_id}
    controller: App\Controller\Land\Main::prePayType
    methods: [GET]
    requirements:
        type_id: \d+
        land_id: \d+
    defaults:
        type_id: -1
        land_id: -1

landMoneyMove:
    path: /moneymove/{land_id}
    controller: App\Controller\Application::index
    methods: [GET]
    requirements:
        land_id: \d+
    defaults:
        land_id: -1

landMoneyMoveForm:
    path: /moneymove/form/{land_id}
    controller: App\Controller\Land\Main::moneyMoveForm
    methods: [GET]
    requirements:
        land_id: \d+
    defaults:
        land_id: -1

landMoneyMoveData:
    path: /moneymove/data
    controller: App\Controller\Land\Main::moneyMoveData
    methods: [POST]

landPayDistributed:
    path: /pay/distributed/{pay_id}
    controller: App\Controller\Land\Pays::distributed
    methods: [GET]
    requirements:
        pay_id: \d+
    defaults:
        pay_id: -1

landPayDistribute:
    path: /pay/distribute/{pay_id}/{invoice_id}/{distribute}
    controller: App\Controller\Land\Pays::distribute
    methods: [GET]
    requirements:
        pay_id: \d+
        invoice_id: \d+
        distribute: 0|1
    defaults:
        pay_id: -1
        invoice_id: -1
        distribute: -1

landPayDelete:
    path: /pay/delete/{pay_id}
    controller: App\Controller\Land\Pays::delete
    methods: [GET]
    requirements:
        pay_id: \d+
    defaults:
        pay_id: -1