<?php
return [
    ['GET', '/', 'AuthController@login'],
    ['GET', '/login', 'AuthController@login'],
    ['POST', '/login', 'AuthController@loginPost'],
    ['GET', '/register', 'AuthController@register'],
    ['POST', '/register', 'AuthController@registerPost'],
    ['POST', '/logout', 'AuthController@logout'],

    ['GET', '/dashboard', 'DashboardController@index'],
    ['GET', '/settings', 'DashboardController@settings'],
    ['POST', '/settings/profile', 'DashboardController@updateProfile'],
    ['POST', '/settings/password', 'DashboardController@updatePassword'],
    ['POST', '/settings/recharge', 'DashboardController@recharge'],

    ['GET', '/keys', 'KeysController@index'],
    ['GET', '/keys/generate', 'KeysController@generate'],
    ['POST', '/keys/generate', 'KeysController@generatePost'],
    ['GET', '/keys/edit/{id}', 'KeysController@edit'],
    ['POST', '/keys/edit/{id}', 'KeysController@editPost'],
    ['POST', '/keys/reset-devices', 'KeysController@resetDevices'],
    ['POST', '/keys/delete', 'KeysController@delete'],
    ['POST', '/keys/delete-batch', 'KeysController@deleteBatch'],
    ['POST', '/keys/batch-update', 'KeysController@batchUpdate'],
    ['GET', '/keys/download-last', 'KeysController@downloadLast'],
    ['GET', '/keys/export-all', 'KeysController@exportAll'],

    ['GET', '/admin/users', 'AdminController@users'],
    ['GET', '/admin/users/edit/{id}', 'AdminController@userEdit'],
    ['POST', '/admin/users/edit/{id}', 'AdminController@userEditPost'],
    ['POST', '/admin/users/delete', 'AdminController@userDelete'],
    ['GET', '/admin/referrals', 'AdminController@referrals'],
    ['POST', '/admin/referrals', 'AdminController@referralsPost'],
    ['GET', '/admin/stats', 'AdminController@stats'],
    ['GET', '/admin/system', 'AdminController@system'],
    ['POST', '/admin/system', 'AdminController@systemPost'],
    ['GET', '/admin/update-debug', 'AdminController@updateDebug'],
    ['POST', '/admin/update/check', 'AdminController@updateCheck'],
    ['POST', '/admin/update/apply', 'AdminController@updateApply'],

    ['GET', '/conncet', 'ConnectController@index'],
    ['POST', '/conncet', 'ConnectController@indexPost'],
    ['GET', '/connect', 'ConnectController@index'],
    ['POST', '/connect', 'ConnectController@indexPost'],
    ['GET', '/connect/demo', 'DashboardController@connectDemo'],
    ['GET', '/query-key', 'QueryController@index'],
    ['POST', '/query-key', 'QueryController@queryPost'],
    ['POST', '/query-key/unbind', 'QueryController@unbindPost'],

    ['GET', '/api/v1/ping', 'ApiController@ping'],
    ['POST', '/api/v1/login', 'ApiController@login'],
    ['POST', '/api/v1/key/query', 'ApiController@keyQuery'],
    ['POST', '/api/v1/key/unbind', 'ApiController@keyUnbind'],
    ['GET', '/api/v1/notices', 'ApiController@notices'],
];
