Skip to content

Commit

Permalink
Lost remove
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesChou committed Jul 7, 2023
1 parent 0956d2b commit ab021bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions routes/api.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php

use App\Http\Controllers\Admin\ProductImageController;
use App\Http\Controllers\Api\CustomerQuestionApiController;
use App\Http\Controllers\Api\DeliveredApiController;
use App\Http\Controllers\Api\FlashSaleApiController;
use App\Http\Controllers\Api\OrderApiController;
use App\Http\Controllers\Api\ProductApiController;
use App\Http\Controllers\Api\ReadyToShipApiController;
Expand All @@ -23,9 +21,6 @@
Route::get('/product/onsale/invert/{id}', [ProductApiController::class, 'onSaleInvert'])->name('product.onSaleInvert');
Route::get('/product/live/invert/{id}', [ProductApiController::class, 'liveInvert'])->name('product.liveInvert');

//campaign flash sale
Route::get('/flash-sale/all', [FlashSaleApiController::class, 'all'])->name('flashSale.all');

//orders api
Route::get('/order/all', [OrderApiController::class, 'all'])->name('order.all');

Expand Down
1 change: 0 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use App\Http\Controllers\HomeController;
use App\Http\Controllers\MyOrderController;
use App\Http\Controllers\User\Catalog;
use App\Http\Controllers\User\DirectBuy;
use App\Http\Controllers\User\Shop;
use App\Http\Controllers\User\ShowProduct;
use App\Http\Controllers\UserController;
Expand Down
9 changes: 5 additions & 4 deletions tests/Feature/AdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ public function adminsAreRedirectedToHomeAfterLogin()
Artisan::call('db:seed');
// login as admin
$response = $this->from('/login')->post('/login', [
'email' => 'admin@admin.com',
'password' => 'password'
'email' => 'admin@2023.laravelconf.tw',
'password' => 'password',
]);

$this->assertTrue(Auth::check());
$response->assertStatus(302);
$response->assertRedirect('/home');

$response->assertStatus(302)
->assertRedirect('/home');
}
}

0 comments on commit ab021bc

Please sign in to comment.