First Commit
This commit is contained in:
Executable
+50
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SysCMS - Content Management System
|
||||
*
|
||||
* Copyright (c) 2025 Marco Costa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Author: Marco Costa
|
||||
* Email: contato@syspanel.com.br
|
||||
* Project: SysCMS
|
||||
*
|
||||
* This software is licensed, not sold.
|
||||
* Permission is granted to use this software
|
||||
* subject to the terms of the SysCMS Commercial License.
|
||||
*
|
||||
* Redistribution, sublicensing, resale, or
|
||||
* disclosure of this software, in whole or in part,
|
||||
* is strictly prohibited without prior written permission.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
|
||||
*/
|
||||
|
||||
use Kernel\Application;
|
||||
use Modules\FluxoCaixaPro\Controllers\CashFlowController;
|
||||
use Modules\FluxoCaixaPro\Controllers\CategoryController;
|
||||
|
||||
/**
|
||||
* Register FluxoCaixaPro module routes
|
||||
*
|
||||
* @param Application $app
|
||||
* @return void
|
||||
*/
|
||||
return function (Application $app) {
|
||||
// Dashboard and Main Actions
|
||||
$app->addRoute('GET', '/admin/fluxo-caixa', [CashFlowController::class, 'index']);
|
||||
$app->addRoute('GET', '/admin/fluxo-caixa/export', [CashFlowController::class, 'exportToExcel']);
|
||||
$app->addRoute('POST', '/admin/fluxo-caixa/transaction', [CashFlowController::class, 'storeTransaction']);
|
||||
$app->addRoute('POST', '/admin/fluxo-caixa/transaction/update/{id}', [CashFlowController::class, 'updateTransaction']);
|
||||
$app->addRoute('POST', '/admin/fluxo-caixa/transaction/delete/{id}', [CashFlowController::class, 'deleteTransaction']);
|
||||
$app->addRoute('POST', '/admin/fluxo-caixa/transaction/pay/{id}', [CashFlowController::class, 'markAsPaid']);
|
||||
$app->addRoute('POST', '/admin/fluxo-caixa/analysis', [CashFlowController::class, 'runAnalysis']);
|
||||
$app->addRoute('POST', '/admin/fluxo-caixa/reconcile', [CashFlowController::class, 'reconcile']);
|
||||
|
||||
// Categories
|
||||
$app->addRoute('GET', '/admin/fluxo-caixa/categories', [CategoryController::class, 'index']);
|
||||
$app->addRoute('POST', '/admin/fluxo-caixa/categories/store', [CategoryController::class, 'store']);
|
||||
$app->addRoute('POST', '/admin/fluxo-caixa/categories/update/{id}', [CategoryController::class, 'update']);
|
||||
$app->addRoute('POST', '/admin/fluxo-caixa/categories/delete/{id}', [CategoryController::class, 'delete']);
|
||||
};
|
||||
Reference in New Issue
Block a user