M
@devansh-webkul said in make api with basic Authentication:
JWT
I made a middleware to handle the basic authentication and it worked fine, the authentication went very well, but now when I try to call a function inside bagisto's packages it returns the login page instead of the output of the function, looks like it need another authentication to reach the package's function!!
what i need to do is to
==> call a function in Webkul\Shop\Http\Controllers\orderController from route\api.php
orderController function :
public function saveAttachments()
{
return "test request";
}
api.php route:
Route::middleware(['basic.auth:api'])->group(function () {
Route::post('/attachments', [OrderController::class, 'saveAttachments']);
});