I am still confused when i try to add a route path in vue router such as :
{
path: '/admin/blog/archived_blogs',
name: 'ArchivedBlogs',
meta: { title: 'Archived Blog' },
component: ArchivedBlog
},
everything works fine apart from deleting where i get error 405(Method not allowed)
The POST method is not supported for this route. Supported methods: GET, HEAD.
all i can do is change the path to
{
path: '/admin_blog_archived_blogs',
name: 'ArchivedBlogs',
meta: { title: 'Archived Blog' },
component: ArchivedBlog
},
the current web route i use is
Route::get('/{slug?}', [HomeController::class, 'index'])->where('slug', '[\/\w\.-]*')->name('home');
Any advice ?
Route::getsays it's a GET route, change toRoute::postif you want a POST route