mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-19 12:34:13 +00:00
change route for booking details
This commit is contained in:
@@ -247,7 +247,7 @@
|
||||
})
|
||||
|
||||
axios
|
||||
.get('/api/admin/booking/' + this.$route.params.id)
|
||||
.get('/api/admin/booking/' + this.$route.params.id + '/details')
|
||||
.then((response) => {
|
||||
this.booking_details = response.data;
|
||||
this.trackerConfig.term = response.data.term;
|
||||
|
||||
@@ -366,7 +366,7 @@
|
||||
})
|
||||
|
||||
axios
|
||||
.get('/api/admin/booking/' + this.$route.params.id)
|
||||
.get('/api/admin/booking/' + this.$route.params.id + '/details')
|
||||
.then((response) => {
|
||||
this.booking_details = response.data
|
||||
this.trackerConfig.term = response.data.term;
|
||||
|
||||
@@ -301,7 +301,7 @@
|
||||
})
|
||||
|
||||
axios
|
||||
.get('/api/admin/booking/' + this.$route.params.id)
|
||||
.get('/api/admin/booking/' + this.$route.params.id + '/details')
|
||||
.then((response) => {
|
||||
this.booking_details = response.data
|
||||
this.trackerConfig.term = response.data.term;
|
||||
|
||||
@@ -300,7 +300,7 @@
|
||||
})
|
||||
|
||||
axios
|
||||
.get('/api/admin/booking/' + this.$route.params.id)
|
||||
.get('/api/admin/booking/' + this.$route.params.id + '/details')
|
||||
.then((response) => {
|
||||
this.booking_details = response.data
|
||||
this.trackerConfig.term = response.data.term;
|
||||
|
||||
@@ -347,7 +347,7 @@
|
||||
})
|
||||
|
||||
axios
|
||||
.get('/api/admin/booking/' + this.$route.params.id)
|
||||
.get('/api/admin/booking/' + this.$route.params.id + '/details')
|
||||
.then((response) => {
|
||||
this.booking_details = response.data
|
||||
this.trackerConfig.term = response.data.term;
|
||||
|
||||
@@ -363,7 +363,7 @@
|
||||
})
|
||||
|
||||
axios
|
||||
.get('/api/admin/booking/' + this.$route.params.id)
|
||||
.get('/api/admin/booking/' + this.$route.params.id + '/details')
|
||||
.then((response) => {
|
||||
loading.close()
|
||||
this.booking_details = response.data
|
||||
|
||||
@@ -292,7 +292,7 @@
|
||||
})
|
||||
|
||||
axios
|
||||
.get('/api/admin/booking/' + this.$route.params.id)
|
||||
.get('/api/admin/booking/' + this.$route.params.id + '/details')
|
||||
.then((response) => {
|
||||
this.booking_details = response.data;
|
||||
this.trackerConfig.term = response.data.term;
|
||||
|
||||
@@ -330,7 +330,7 @@
|
||||
})
|
||||
|
||||
axios
|
||||
.get('/api/admin/booking/' + this.$route.params.id)
|
||||
.get('/api/admin/booking/' + this.$route.params.id + '/details')
|
||||
.then((response) => {
|
||||
this.booking_details = response.data
|
||||
this.trackerConfig.term = response.data.term;
|
||||
|
||||
@@ -152,7 +152,7 @@ export default {
|
||||
methods: {
|
||||
getBooking(){
|
||||
let $this = this
|
||||
axios.get("/"+this.url+"/"+ this.$route.params.userId).then(response => {
|
||||
axios.get("/"+this.url+"/"+ this.$route.params.userId+"/userBookings").then(response => {
|
||||
this.bookingTable = response.data.data;
|
||||
$this.makePagination(response.data);
|
||||
})
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@ Route::group(['middleware' => 'guest:api'], function () {
|
||||
Route::group(['middleware' => ['role:admin']], function() {
|
||||
Route::get('admin/booking/{userId?}', 'BookingController@adminIndex');
|
||||
Route::get('admin-complete-booking/{userId?}', 'BookingController@adminBookComplete');
|
||||
Route::get('admin/booking/{id}', 'BookingController@adminShow');
|
||||
Route::get('admin/booking/{id}/details', 'BookingController@adminShow');
|
||||
Route::post('update-rate', 'RateController@store');
|
||||
Route::put('update-rate/{rate}', 'RateController@update');
|
||||
Route::delete('update-rate/{rate}', 'RateController@delete');
|
||||
|
||||
Reference in New Issue
Block a user