- name: Publish
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
source: "public/build/*"
target: "/var/www/bb"
Route::controller(AdminController::class)->prefix('admin')->middleware(['admin'])->group(function () {
Route::get('/', 'index')->name('admin.index');
Route::get('/posts', 'posts')->name('admin.posts.index');
});
Route::group(['namespace' => 'App\Http\Controllers\Post'], function () {
Route::get('/posts', IndexController::class)->name('post.index');
Route::get('/posts/create', CreateController::class)->name('post.create');
});