<?php
declare(strict_types=1);

return [
    // Profile
    ['GET',  '/api/v1/parent/profile',                         'ParentApi\Controllers\Api\ProfileController@show',        ['cors', 'parent_auth'], null],
    ['PUT',  '/api/v1/parent/profile',                         'ParentApi\Controllers\Api\ProfileController@update',      ['cors', 'parent_auth'], null],

    // Children
    ['GET',  '/api/v1/parent/children',                        'ParentApi\Controllers\Api\ChildrenController@index',       ['cors', 'parent_auth'], null],
    ['GET',  '/api/v1/parent/children/{id:\d+}/dashboard',     'ParentApi\Controllers\Api\ChildrenController@dashboard',   ['cors', 'parent_auth'], null],
    ['GET',  '/api/v1/parent/children/{id:\d+}/attendance',    'ParentApi\Controllers\Api\ChildrenController@attendance',  ['cors', 'parent_auth'], null],
    ['GET',  '/api/v1/parent/children/{id:\d+}/evaluations',   'ParentApi\Controllers\Api\ChildrenController@evaluations', ['cors', 'parent_auth'], null],
    ['GET',  '/api/v1/parent/children/{id:\d+}/medical',       'ParentApi\Controllers\Api\ChildrenController@medical',     ['cors', 'parent_auth'], null],
    ['GET',  '/api/v1/parent/children/{id:\d+}/financials',    'ParentApi\Controllers\Api\ChildrenController@financials',  ['cors', 'parent_auth'], null],
    ['GET',  '/api/v1/parent/children/{id:\d+}/achievements',  'ParentApi\Controllers\Api\ChildrenController@achievements',['cors', 'parent_auth'], null],

    // Notifications
    ['GET',  '/api/v1/parent/notifications',                   'ParentApi\Controllers\Api\NotificationController@list',        ['cors', 'parent_auth'], null],
    ['POST', '/api/v1/parent/notifications/{id:\d+}/read',     'ParentApi\Controllers\Api\NotificationController@markRead',    ['cors', 'parent_auth'], null],
    ['POST', '/api/v1/parent/notifications/read-all',          'ParentApi\Controllers\Api\NotificationController@markAllRead', ['cors', 'parent_auth'], null],
    ['GET',  '/api/v1/parent/notifications/unread-count',      'ParentApi\Controllers\Api\NotificationController@unreadCount', ['cors', 'parent_auth'], null],

    // Device / Push Token
    ['POST',   '/api/v1/parent/device',                        'ParentApi\Controllers\Api\DeviceController@register',   ['cors', 'parent_auth'], null],
    ['DELETE', '/api/v1/parent/device',                        'ParentApi\Controllers\Api\DeviceController@unregister', ['cors', 'parent_auth'], null],
];
