First Commit
This commit is contained in:
Executable
+46
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SysCMS - Content Management System
|
||||
*
|
||||
* Copyright (c) 2026 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\Notes\Controllers\NotesController;
|
||||
|
||||
/**
|
||||
* Register Notes module routes
|
||||
*
|
||||
* @param Application $app
|
||||
* @return void
|
||||
*/
|
||||
return function (Application $app) {
|
||||
// Admin Routes
|
||||
$app->addRoute('GET', '/admin/notes', [NotesController::class, 'index']);
|
||||
$app->addRoute('GET', '/admin/notes/create', [NotesController::class, 'create']);
|
||||
$app->addRoute('POST', '/admin/notes/store', [NotesController::class, 'store']);
|
||||
$app->addRoute('GET', '/admin/notes/edit/{id}', [NotesController::class, 'edit']);
|
||||
$app->addRoute('POST', '/admin/notes/update/{id}', [NotesController::class, 'update']);
|
||||
$app->addRoute('POST', '/admin/notes/delete/{id}', [NotesController::class, 'delete']);
|
||||
$app->addRoute('POST', '/admin/notes/pin/{id}', [NotesController::class, 'pin']);
|
||||
|
||||
// Subjects management
|
||||
$app->addRoute('POST', '/admin/notes/subjects/store', [NotesController::class, 'storeSubject']);
|
||||
$app->addRoute('POST', '/admin/notes/subjects/delete/{id}', [NotesController::class, 'deleteSubject']);
|
||||
};
|
||||
Reference in New Issue
Block a user