feat: add GeneratesUniqueSlug class for unique slug generation
feat: create PostCategoryFactory for generating post category data feat: create PostFactory for generating post data feat: add retry_requested_at column to services table feat: add vcenter provisioning fields to products table feat: add module_host_id to os table feat: create email_notification_templates table for email templates feat: add scenario and format fields to template table feat: add admin fields to transactions table fix: update ticket table columns and types feat: add uuid to ticket table and backfill existing records fix: make ticket_reply user_id nullable feat: create notifications table for user notifications fix: make ticket uuid nullable feat: create post_categories table for blog categories feat: create posts table for blog posts feat: add invoice email template for PDF generation
This commit is contained in:
@@ -10,6 +10,10 @@ use App\Http\Controllers\Api\Service\SnapshotController;
|
||||
use App\Http\Controllers\Api\Service\VmController;
|
||||
use App\Http\Controllers\Api\Service\VmRebuildController;
|
||||
use App\Http\Controllers\Api\Client\BankController as ClientBankController;
|
||||
use App\Http\Controllers\Api\Client\Docs\PostCategoryController as ClientPostCategoryController;
|
||||
use App\Http\Controllers\Api\Client\Docs\PostController as ClientPostController;
|
||||
use App\Http\Controllers\Api\Client\Ticket\TicketController as ClientTicketController;
|
||||
use App\Http\Controllers\Api\NotificationController;
|
||||
use App\Http\Controllers\Api\Transaction\ManualDepositController;
|
||||
use App\Http\Controllers\Api\Transaction\TransactionController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
@@ -59,6 +63,8 @@ Route::prefix('v1')
|
||||
Route::get('/', 'getService')->name('list');
|
||||
Route::get('{uuid}', 'getDetail')->name('detail');
|
||||
Route::get('{uuid}/console-ticket', 'getConsoleTicket')->name('console-ticket');
|
||||
Route::get('{uuid}/available-os', 'getAvailableOs')->name('available-os');
|
||||
Route::post('{uuid}/rebuild', 'rebuild')->name('rebuild');
|
||||
});
|
||||
|
||||
Route::middleware(['api.auth'])
|
||||
@@ -79,6 +85,27 @@ Route::prefix('v1')
|
||||
->group(function () {
|
||||
Route::get('payment-history', 'getClientPaymentHistory')->name('payment-history.list');
|
||||
});
|
||||
|
||||
Route::middleware(['api.auth'])
|
||||
->prefix('notifications')
|
||||
->controller(NotificationController::class)
|
||||
->group(function () {
|
||||
Route::get('/', fn () => app(NotificationController::class)->index(request(), 'client'));
|
||||
Route::patch('{id}/read', fn ($id) => app(NotificationController::class)->markRead(request(), 'client', (int) $id));
|
||||
Route::patch('read-all', fn () => app(NotificationController::class)->markAllRead(request(), 'client'));
|
||||
});
|
||||
|
||||
Route::middleware(['api.auth'])
|
||||
->prefix('tickets')
|
||||
->controller(ClientTicketController::class)
|
||||
->as('tickets.')
|
||||
->group(function () {
|
||||
Route::get('/', 'index')->name('index');
|
||||
Route::post('/', 'store')->name('store');
|
||||
Route::get('{ticket_num}', 'show')->name('show');
|
||||
Route::post('{ticket_num}/reply', 'reply')->middleware('throttle:10,1')->name('reply');
|
||||
Route::patch('{ticket_num}/close', 'close')->name('close');
|
||||
});
|
||||
});
|
||||
|
||||
// Services (Products) - Public & Protected Routes
|
||||
@@ -97,6 +124,7 @@ Route::prefix('v1')
|
||||
->group(function () {
|
||||
Route::controller(OrderController::class)->group(function () {
|
||||
Route::get('/', 'getList')->name('list');
|
||||
Route::get('check-server-name', 'checkServerName')->name('check-server-name');
|
||||
Route::post('/', 'storeOrder')->name('store');
|
||||
Route::post('{id}/pay', 'payOrder')->name('pay');
|
||||
});
|
||||
@@ -113,6 +141,22 @@ Route::prefix('v1')
|
||||
// Public bank list for deposit form
|
||||
Route::get('banks', [ClientBankController::class, 'index'])->name('banks.list');
|
||||
|
||||
Route::prefix('post-categories')
|
||||
->controller(ClientPostCategoryController::class)
|
||||
->as('client.docs.categories.')
|
||||
->group(function () {
|
||||
Route::get('/', 'index')->name('index');
|
||||
});
|
||||
|
||||
Route::prefix('posts')
|
||||
->controller(ClientPostController::class)
|
||||
->as('client.docs.posts.')
|
||||
->group(function () {
|
||||
Route::get('/', 'index')->name('index');
|
||||
Route::get('featured', 'featured')->name('featured');
|
||||
Route::get('{slug}', 'show')->name('show');
|
||||
});
|
||||
|
||||
// Product Categories - Public Routes (no auth required)
|
||||
Route::prefix('group')
|
||||
->as('product-categories.')
|
||||
|
||||
Reference in New Issue
Block a user