forked from AoS_Digital_Health_Platform/aos-glass-report-np
changed directory
This commit is contained in:
19
glass_report/routes/api.php
Normal file
19
glass_report/routes/api.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| API Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register API routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| is assigned the "api" middleware group. Enjoy building your API!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::middleware('auth:api')->get('/user', function (Request $request) {
|
||||
return $request->user();
|
||||
});
|
||||
18
glass_report/routes/channels.php
Normal file
18
glass_report/routes/channels.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Broadcast;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Broadcast Channels
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may register all of the event broadcasting channels that your
|
||||
| application supports. The given channel authorization callbacks are
|
||||
| used to check if an authenticated user can listen to the channel.
|
||||
|
|
||||
*/
|
||||
|
||||
Broadcast::channel('App.User.{id}', function ($user, $id) {
|
||||
return (int) $user->id === (int) $id;
|
||||
});
|
||||
19
glass_report/routes/console.php
Normal file
19
glass_report/routes/console.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Console Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This file is where you may define all of your Closure based console
|
||||
| commands. Each Closure is bound to a command instance allowing a
|
||||
| simple approach to interacting with each command's IO methods.
|
||||
|
|
||||
*/
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->describe('Display an inspiring quote');
|
||||
25
glass_report/routes/web.php
Normal file
25
glass_report/routes/web.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
// Route::get('/', function () {
|
||||
// return view('welcome');
|
||||
// });
|
||||
Auth::routes(['verify' => true]);
|
||||
|
||||
route::get('irsx', 'IrsxController@index')->name('irsx');
|
||||
route::get('', 'sample_fileController@index')->name('sample_file');
|
||||
route::get('home', 'sample_fileController@index')->name('home');
|
||||
route::get('user/register-home', 'adminController@index')->name('register-home');
|
||||
route::get('user/register-staff', 'adminController@create')->name('register.create');
|
||||
route::post('user/register-save', 'adminController@save')->name('register.save');
|
||||
route::get('user/register-edit/{id}', 'adminController@edit')->name('register.edit');
|
||||
route::put('user/register-update/{id}', 'adminController@update')->name('register-update');
|
||||
route::delete('user/register-delete/{id}', 'adminController@delete')->name('register-delete');
|
||||
Route::get('/change-password', 'ChangePasswordController@index')->name('change_pass');
|
||||
Route::post('/update-password', 'ChangePasswordController@upt_pass')->name('upt_pass');
|
||||
Route::get('/text', 'textController@index')->name('text');
|
||||
Auth::routes();
|
||||
|
||||
// Route::get('/home', 'HomeController@index')->name('home');
|
||||
|
||||
Reference in New Issue
Block a user