File: routes.php

Recommend this page to a friend!
  Classes of Ahmad Mustapha  >  Simple React PHP HTTP Server  >  routes.php  >  Download  
File: routes.php
Role: Configuration script
Content type: text/plain
Description: Routes script
Class: Simple React PHP HTTP Server
Pure PHP HTTP server using ReactPHP library
Author: By
Last change:
Date: 2 months ago
Size: 533 bytes


Class file image Download

use QuickRoute\Route;

Route::get('/', 'MainController@index');
Route::get('/list', 'MainController@list');

group(function () {
Route::prefix('form')->group(function (){
//Regular form
Route::get('/', 'FormController@show');
Route::post('submit', 'FormController@submit');

Route::get('file', 'FormController@file');
Route::post('upload', 'FormController@upload');

For more information send a message to info at phpclasses dot org.