예제 #1
0
파일: routes.php 프로젝트: Monori/imgback
<?php

/**
 * This file contains all the routes for the project
 */
use Pecee\Router;
Router::group(['middleware' => '\\NinjaImgService\\Middleware\\ApiTokenVerifier'], function () {
    Router::get('/', 'ControllerDefault@home');
    Router::post('/', 'ControllerApi@upload');
    Router::put('/', 'ControllerApi@upload');
    Router::delete('/', 'ControllerApi@delete');
})->match('.');
Router::defaultExceptionHandler('\\NinjaImgService\\Handler\\CustomExceptionHandler');
Router::csrfVerifier(new \NinjaImgService\Middleware\CsrfVerifier());