mecha-cms / x.panel

Control panel feature.
Other
6 stars 0 forks source link

Replace `route` Property with `kick` #30

Closed taufik-nurrohman closed 2 years ago

taufik-nurrohman commented 2 years ago

And move the route property in guard to route only.

Before

<?php

return [
    'guard' => [
        'route' => '/panel',
        'trash' => true
    ],
    'route' => '/page/1',
    'sync' => 0
];

After

<?php

return [
    'kick' => 'get/page/1',
    'route' => '/panel',
    'sync' => 0,
    'trash' => true
];

If kick value does not have / prefix, it will be resolved to the panel base URL that is http://127.0.0.1/panel. Otherwise, it will be relative to the public base URL that is http://127.0.0.1. A full URL value will be treated as-is.