PHP Classes

File: examples/production/handlers.php

Recommend this page to a friend!
  Classes of El Amrani Chakir   PHP AJAX Response Handler   examples/production/handlers.php   Download  
File: examples/production/handlers.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP AJAX Response Handler
Process AJAX requests with response handlers
Author: By
Last change:
Date: 2 years ago
Size: 388 bytes
 

Contents

Class file image Download
<?php

use AmraniCh\AjaxDispatcher\Handler\Handler;

return [

   
Handler::get('get-posts', 'PostController@getPosts'),

   
Handler::many(['GET', 'POST'], 'getPost', 'PostController@getPost'),

   
Handler::post('createPost', 'PostController@createPost'),

   
Handler::put('updatePost', 'PostController@updatePost'),

   
Handler::delete('removePost', 'PostController@removePost'),
];