Sửa lỗi frontend không load dược danh sách thêm thành viên
This commit is contained in:
Vendored
+4
-4
@@ -765,7 +765,7 @@ __decorate([
|
||||
__metadata("design:returntype", Promise)
|
||||
], LocationController.prototype, "deleteLocation", null);
|
||||
LocationController = __decorate([
|
||||
(0, common_1.Controller)('v1/locations'),
|
||||
(0, common_1.Controller)('locations'),
|
||||
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
|
||||
__metadata("design:paramtypes", [prisma_service_1.PrismaService])
|
||||
], LocationController);
|
||||
@@ -810,7 +810,7 @@ __decorate([
|
||||
__metadata("design:returntype", Promise)
|
||||
], LegController.prototype, "deleteLeg", null);
|
||||
LegController = __decorate([
|
||||
(0, common_1.Controller)('v1/legs'),
|
||||
(0, common_1.Controller)('legs'),
|
||||
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
|
||||
__metadata("design:paramtypes", [prisma_service_1.PrismaService])
|
||||
], LegController);
|
||||
@@ -912,7 +912,7 @@ __decorate([
|
||||
__metadata("design:returntype", Promise)
|
||||
], RoutingController.prototype, "optimize", null);
|
||||
RoutingController = __decorate([
|
||||
(0, common_1.Controller)('v1/routing'),
|
||||
(0, common_1.Controller)('routing'),
|
||||
__metadata("design:paramtypes", [prisma_service_1.PrismaService])
|
||||
], RoutingController);
|
||||
let UserController = class UserController {
|
||||
@@ -1001,7 +1001,7 @@ __decorate([
|
||||
__metadata("design:returntype", Promise)
|
||||
], UserController.prototype, "toggleBlock", null);
|
||||
UserController = __decorate([
|
||||
(0, common_1.Controller)('v1/users'),
|
||||
(0, common_1.Controller)('users'),
|
||||
__metadata("design:paramtypes", [prisma_service_1.PrismaService])
|
||||
], UserController);
|
||||
let AppModule = class AppModule {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+4
-4
@@ -587,7 +587,7 @@ class TourController {
|
||||
}
|
||||
}
|
||||
|
||||
@Controller('v1/locations')
|
||||
@Controller('locations')
|
||||
@UseGuards(JwtAuthGuard)
|
||||
class LocationController {
|
||||
constructor(private prisma: PrismaService) {}
|
||||
@@ -644,7 +644,7 @@ class LocationController {
|
||||
}
|
||||
}
|
||||
|
||||
@Controller('v1/legs')
|
||||
@Controller('legs')
|
||||
@UseGuards(JwtAuthGuard)
|
||||
class LegController {
|
||||
constructor(private prisma: PrismaService) {}
|
||||
@@ -688,7 +688,7 @@ function calculateDistance(lat1: number, lon1: number, lat2: number, lon2: numbe
|
||||
return 12742 * Math.asin(Math.sqrt(a)); // 2 * R; R = 6371 km
|
||||
}
|
||||
|
||||
@Controller('v1/routing')
|
||||
@Controller('routing')
|
||||
class RoutingController {
|
||||
constructor(private prisma: PrismaService) {}
|
||||
|
||||
@@ -801,7 +801,7 @@ class RoutingController {
|
||||
}
|
||||
}
|
||||
|
||||
@Controller('v1/users')
|
||||
@Controller('users')
|
||||
class UserController {
|
||||
constructor(private prisma: PrismaService) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user