<?php
use Illuminate\Support\Facades\ Route;
/*
|----------------------------- ------------------------------ ---------------
| Web Routes
|----------------------------- ------------------------------ ---------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
/*--------------------- admin panel ------------------------------ -*/
Route::match(['get','post'],'/ ','backEnd\AuthController@ login');
Route::match(['get','post'],'/ admin','backEnd\ AuthController@login');
Route::match(['get','post'],'/ admin/login','backEnd\ AuthController@login');
Route::match(['get','post'],'/ admin/forgot-password',' backEnd\AuthController@forgot_ password');
Route::match(['get','post'],'/ admin/set-password/{admin_id}/ {security_code}','backEnd\ AuthController@set_password');
Route::group(['prefix'=>' admin','middleware'=>' CheckAdminAuth'],function(){
Route::match(['get','post'],'/ dashboard','backEnd\ DashboardController@index');
Route::get('/logout','backEnd\ AuthController@logout');
Route::match(['get','post'],'/ profile','backEnd\ ProfileController@index');
Route::match(['get','post'],'/ change-password','backEnd\ ProfileController@change_ password');
// user management
Route::get('/restraunts',' backEnd\userManagement\ RestrauntController@index');
Route::post('/data/restraunts' ,'backEnd\userManagement\ RestrauntController@ restrauntList');
Route::post('/data/restraunts/ category/{rest_id}','backEnd\ userManagement\ RestrauntController@ categoryListData');
Route::match(['get','post'],'/ restraunt/add','backEnd\ userManagement\ RestrauntController@add');
Route::match(['get','post'],'/ restraunt/edit/{rest_id}',' backEnd\userManagement\ RestrauntController@edit');
Route::match(['get','post'],'/ restraunt/delete/{rest_id}',' backEnd\userManagement\ RestrauntController@delete');
Route::match(['get','post'],'/ validate/restraunt-email',' backEnd\AuthController@check_ admin_email');
Route::match(['get','post'],'/ validate/restraunt-contact',' backEnd\AuthController@check_ admin_contact');
Route::get('/restaurant/send- credentials/{admin_id}',' backEnd\userManagement\ RestrauntController@ sendCredentialEmail');
// restaurant category
Route::match(['get','post'],'/ restraunt/category/add/{rest_ id}','backEnd\userManagement\ RestrauntController@ categoryData');
Route::match(['get','post'],'/ restraunt/category/view/{rest_ id}','backEnd\userManagement\ RestrauntController@ categoryViewList');
// Content management || cusisine
Route::get('/cuisines',' backEnd\contentManagement\ CuisinesController@index');
Route::post('/data/cuisines',' backEnd\contentManagement\ CuisinesController@ cuisinesList');
Route::match(['get','post'],'/ cuisine/add','backEnd\ contentManagement\ CuisinesController@add');
Route::match(['get','post'],'/ cuisine/edit/{cuisine_id}',' backEnd\contentManagement\ CuisinesController@edit');
//soft-delete of cusisine
Route::match(['get','post'],'/ cuisine/delete/{cuisine_id}',' backEnd\contentManagement\ CuisinesController@delete');
// Content management || categories categories
Route::get('/categories',' backEnd\contentManagement\ CategoriesController@index');
Route::post('/data/categories' ,'backEnd\contentManagement\ CategoriesController@ catergoriesList');
Route::match(['get','post'],'/ category/add','backEnd\ contentManagement\ CategoriesController@add');
Route::match(['get','post'],'/ category/edit/{category_id}',' backEnd\contentManagement\ CategoriesController@edit');
//soft-delete of cusisine
Route::match(['get','post'],'/ category/delete/{category_id}' ,'backEnd\contentManagement\ CategoriesController@delete');
});
define('PROJECT_NAME',' QuickTapp');
define('AdminProfileBasePath', 'storage/app/public/profile/ admin/');
define(' RestrauntsProfileBasePath', 'storage/app/public/profile/ restraunt/');
define(' ContentCategoriesBasePath', 'storage/app/public/ categories/');
define('AdminProfileImgPath', asset('storage/app/public/ profile/admin/'));
define(' RestrauntsProfileImgPath', asset('storage/app/public/ profile/restraunt/'));
define(' ContentCategoriesImgPath', asset('storage/app/public/ categories/'));
define('DefaultImgPath', asset('storage/app/public/ system/default.jpg'));
define('SystemImgPath',asset(' storage/app/public/system/'));
define('SYSTEM_IMG_PATH', asset('storage/app/public/ system/'));
define('BACKEND_CSS_PATH', asset('public/backEnd/css'));
define('BACKEND_JS_PATH', asset('public/backEnd/js'));
use Illuminate\Support\Facades\
/*
|-----------------------------
| Web Routes
|-----------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
/*--------------------- admin panel ------------------------------
Route::match(['get','post'],'/
Route::match(['get','post'],'/
Route::match(['get','post'],'/
Route::match(['get','post'],'/
Route::match(['get','post'],'/
Route::group(['prefix'=>'
Route::match(['get','post'],'/
Route::get('/logout','backEnd\
Route::match(['get','post'],'/
Route::match(['get','post'],'/
// user management
Route::get('/restraunts','
Route::post('/data/restraunts'
Route::post('/data/restraunts/
Route::match(['get','post'],'/
Route::match(['get','post'],'/
Route::match(['get','post'],'/
Route::match(['get','post'],'/
Route::match(['get','post'],'/
Route::get('/restaurant/send-
// restaurant category
Route::match(['get','post'],'/
Route::match(['get','post'],'/
// Content management || cusisine
Route::get('/cuisines','
Route::post('/data/cuisines','
Route::match(['get','post'],'/
Route::match(['get','post'],'/
//soft-delete of cusisine
Route::match(['get','post'],'/
// Content management || categories categories
Route::get('/categories','
Route::post('/data/categories'
Route::match(['get','post'],'/
Route::match(['get','post'],'/
//soft-delete of cusisine
Route::match(['get','post'],'/
});
define('PROJECT_NAME','
define('AdminProfileBasePath', 'storage/app/public/profile/
define('
define('
define('AdminProfileImgPath', asset('storage/app/public/
define('
define('
define('DefaultImgPath', asset('storage/app/public/
define('SystemImgPath',asset('
define('SYSTEM_IMG_PATH',
define('BACKEND_CSS_PATH',
define('BACKEND_JS_PATH',
0 comments:
Post a Comment
Thanks