Skip to content

Commit

Permalink
change download url
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexJoom committed Jul 7, 2023
1 parent 3d86c4a commit 27dd132
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/PurchasedNetAppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function myPurchasedNetApps() {
return view('purchased-netapps', compact('purchasedNetApps'));
}

public function download(Request $request): \Symfony\Component\HttpFoundation\StreamedResponse
public function downloadDockerImages(Request $request): \Symfony\Component\HttpFoundation\StreamedResponse
{
$netappId = $request->query->get("id");
$netapp = Netapp::where('id', $netappId)->first();
Expand Down
2 changes: 1 addition & 1 deletion resources/views/purchased-netapps.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
@endif
</td>
<td>
<a download="download" href="{{ config("app.url") }}/netapps/purchased/download/?id={{ $purchasedNetApp->netapp->id }}" >
<a href="{{ config("app.url") }}/netapps/download-zip-file?id={{ $purchasedNetApp->netapp->id }}" >
Download
</a>
</td>
Expand Down
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
Route::get('/saved-netapp', [SaveNetappController::class, 'index'])->name('saved-netapp');
Route::get('/revenue-page/{id}', [PurchasedNetAppController::class, 'showRevenue'])->name('revenue-page');
Route::get('/netapps/purchased', [PurchasedNetAppController::class, 'myPurchasedNetApps'])->name('my-purchased-netapps');
Route::get('/netapps/purchased/download', [PurchasedNetAppController::class, 'download'])->name('my-purchased-netapps-download');
Route::get('/netapps/download-zip-file', [PurchasedNetAppController::class, 'downloadDockerImages'])->name('my-purchased-netapps-download');
Route::view('/support', 'support')->name('support');
Route::get('/create-netapp', [NetappController::class, 'index'])->name('create-netapp');
Route::get('/edit-netapp/{id}', [NetappController::class, 'edit'])->name('edit-netapp');
Expand Down

0 comments on commit 27dd132

Please sign in to comment.