21 lines
629 B
PHP
21 lines
629 B
PHP
<?php
|
|
|
|
use Plugi\Extensions;
|
|
|
|
Extensions::addRoutes([
|
|
'/ext--blog/save-post' => __DIR__ . '/routes/savePost.php',
|
|
'/ext--blog/delete-post' => __DIR__ . '/routes/deletePost.php',
|
|
'/ext--blog/save-category' => __DIR__ . '/routes/saveCategory.php',
|
|
'/ext--blog/delete-category' => __DIR__ . '/routes/deleteCategory.php',
|
|
]);
|
|
|
|
Extensions::addBlocks([
|
|
'post-list' => __DIR__ . '/blocks/post-list',
|
|
'post-detail' => __DIR__ . '/blocks/post-detail',
|
|
]);
|
|
|
|
Extensions::registerBackend('blog', [
|
|
'title' => 'Blog',
|
|
'include' => __DIR__ . '/admin/blog.php',
|
|
'icon' => '<i class="ph ph-article"></i>',
|
|
]); |