Added almost all features except language, ads, seo, pages
This commit is contained in:
@@ -1,14 +1,27 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\AppController;
|
||||
use App\Livewire\Email;
|
||||
use App\Livewire\EmailInbox;
|
||||
use App\Livewire\Frontend\Mailbox;
|
||||
use App\Livewire\Home;
|
||||
use App\Models\ZEmail;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('/', Home::class)->name('home');
|
||||
Route::get('/mailbox', Email::class)->name('mailbox');
|
||||
Route::get('/mailbox', Mailbox::class)->name('mailbox');
|
||||
|
||||
Route::get('/switch/{email}', [AppController::class, 'switch'])->name('switch');
|
||||
Route::get('/delete/{email?}', [AppController::class, 'delete'])->name('delete');
|
||||
|
||||
Route::get('locale/{locale}', [AppController::class, 'locale'])->name('locale');
|
||||
|
||||
Route::get('/download-email', function () {
|
||||
$data = 'Your content here'; // or pull from DB / session
|
||||
$filename = 'data.txt';
|
||||
|
||||
return response($data)
|
||||
->header('Content-Type', 'text/plain')
|
||||
->header('Content-Disposition', "attachment; filename={$filename}");
|
||||
})->name('download.txt');
|
||||
|
||||
Route::get('/msg/{email?}/', function ($email) {
|
||||
$responses = [
|
||||
@@ -19,3 +32,17 @@ Route::get('/msg/{email?}/', function ($email) {
|
||||
$notifications = array_merge($responses['to']['notifications'], $responses['cc']['notifications']);
|
||||
return $messages;
|
||||
})->name('test');
|
||||
|
||||
Route::get('/fetchStore', function () {
|
||||
\App\Models\Email::fetchProcessStoreEmail();
|
||||
return 'Email fetched and saved!';
|
||||
});
|
||||
|
||||
Route::get('/get/{email?}', function ($email) {
|
||||
return \App\Models\Email::parseEmail($email);
|
||||
});
|
||||
|
||||
Route::get('/del', function () {
|
||||
dd(\App\Models\Email::mailToDBStatus());
|
||||
return \App\Models\Email::mailToDBStatus();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user