initial commit of full repository
This commit is contained in:
50
routes/admin.php
Normal file
50
routes/admin.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\CategorieController;
|
||||
use App\Http\Controllers\ContatoreEnElController;
|
||||
use App\Http\Controllers\ContatoreGasController;
|
||||
use App\Http\Controllers\MovimentiController;
|
||||
use App\Http\Controllers\TagController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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 "admin" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::get('/', function () {
|
||||
return view('admin');
|
||||
});
|
||||
|
||||
Route::get('logout', function(){ Auth::logout(); return redirect('login'); })->name('logout');
|
||||
|
||||
Route::get('movimentis', [MovimentiController::class,'newMovimenti'])->name('movimentis');
|
||||
Route::post('movimentis',[MovimentiController::class,'insMovimentiSpesa']);
|
||||
Route::get('movimentie', [MovimentiController::class,'newMovimenti'])->name('movimentie');
|
||||
Route::post('movimentie',[MovimentiController::class,'insMovimentiEntrata']);
|
||||
Route::get('movimenti',[MovimentiController::class,'listMovimenti'])->name('movimenti');
|
||||
Route::get('export',[MovimentiController::class,'exportMovimenti'])->name('export');
|
||||
Route::get('resoconto',[MovimentiController::class,'resocontoMovimenti'])->name('resoconto');
|
||||
Route::get('movmodify',[MovimentiController::class,'updateMovimenti']);
|
||||
Route::post('movmodify',[MovimentiController::class,'updatePostMovimenti']);
|
||||
Route::get('movdelete',[MovimentiController::class,'deleteMovimenti']);
|
||||
|
||||
|
||||
Route::get('categorie', [CategorieController::class,'listCategorie'])->name('categorie');
|
||||
Route::post('categorie', [CategorieController::class,'insCategorie']);
|
||||
Route::get('catdelete', [CategorieController::class,'deleteCategorie']);
|
||||
|
||||
Route::get('tags', [TagController::class,'listTags'])->name('tags');
|
||||
Route::post('tags', [TagController::class,'insTags']);
|
||||
|
||||
Route::get('letturegas', [ContatoreGasController::class,'listLettureGas'])->name('gas');
|
||||
Route::post('letturegas', [ContatoreGasController::class,'insLettureGas']);
|
||||
|
||||
Route::get('lettureenel', [ContatoreEnElController::class,'listLettureEnel'])->name('enel');
|
||||
Route::post('lettureenel', [ContatoreEnElController::class,'insLettureEnel']);
|
||||
25
routes/api.php
Normal file
25
routes/api.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\CategorieController;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\TagController;
|
||||
use App\Http\Controllers\MovimentiController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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:sanctum')->get('/user', function (Request $request) {
|
||||
return $request->user();
|
||||
});
|
||||
Route::get('categories', [CategorieController::class,'apiList']);
|
||||
Route::get('tags', [TagController::class,'apiList']);
|
||||
Route::get('movements', [MovimentiController::class,'apiList']);
|
||||
18
routes/channels.php
Normal file
18
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.Models.User.{id}', function ($user, $id) {
|
||||
return (int) $user->id === (int) $id;
|
||||
});
|
||||
15
routes/composer.json
Normal file
15
routes/composer.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "secondtruth/startmin",
|
||||
"description": "Admin dashboard template for Bootstrap",
|
||||
"homepage": "http://www.secondtruth.de",
|
||||
"keywords": ["backend", "admin", "template", "theme", "web"],
|
||||
"license": "ISC",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Christian Neff",
|
||||
"email": "christian.neff@gmail.com",
|
||||
"homepage": "http://www.secondtruth.de",
|
||||
"role": "Developer"
|
||||
}
|
||||
]
|
||||
}
|
||||
19
routes/console.php
Normal file
19
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());
|
||||
})->purpose('Display an inspiring quote');
|
||||
26
routes/web.php
Normal file
26
routes/web.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\TagController;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
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!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
});
|
||||
|
||||
|
||||
Auth::routes(['register' => false]);
|
||||
Route::get('/calendar', [TagController::class,'calendartest'])->name('calendar');
|
||||
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
|
||||
Reference in New Issue
Block a user