PHP Classes

File: routes/api.php

Recommend this page to a friend!
  Classes of Naif Alshaye   Laravel Nova PHP MySQL Manager   routes/api.php   Download  
File: routes/api.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Nova PHP MySQL Manager
Web interface for MySQL server management
Author: By
Last change:
Date: 5 years ago
Size: 1,626 bytes
 

Contents

Class file image Download
<?php

use Illuminate\Http\Request;
use
Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Tool API Routes
|--------------------------------------------------------------------------
|
| Here is where you may register API routes for your tool. These routes
| are loaded by the ServiceProvider of your tool. They are protected
| by your tool's "Authorize" middleware by default. Now, go build!
|
*/

// Route::get('/endpoint', function (Request $request) {
// //
// });

Route::get('/get_databases', 'Naif\NovaMysql\Http\Controllers\cPanelController@getDatabases');
Route::post('/create_database', 'Naif\NovaMysql\Http\Controllers\cPanelController@createDatabase');
Route::post('/delete_database', 'Naif\NovaMysql\Http\Controllers\cPanelController@deleteDatabase');
Route::post('/repair_database', 'Naif\NovaMysql\Http\Controllers\cPanelController@repairDatabase');
Route::get('/get_users', 'Naif\NovaMysql\Http\Controllers\cPanelController@getUsers');
Route::post('/add_user', 'Naif\NovaMysql\Http\Controllers\cPanelController@addUser');
Route::post('/delete_user', 'Naif\NovaMysql\Http\Controllers\cPanelController@deleteUser');
Route::post('/change_password', 'Naif\NovaMysql\Http\Controllers\cPanelController@changeUserPassword');
Route::post('/add_user_to_database', 'Naif\NovaMysql\Http\Controllers\cPanelController@addUserToDatabase');
Route::get('/get_user_privileges', 'Naif\NovaMysql\Http\Controllers\cPanelController@getUserPrivileges');
Route::post('/revoke_database_user', 'Naif\NovaMysql\Http\Controllers\cPanelController@revokeDatabaseUser');