mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 12:30:58 +00:00
chore: fmt
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
import { Controller, Get, Param, ParseUUIDPipe } from '@nestjs/common';
|
||||
import { ApiOperation, ApiTags } from '@nestjs/swagger';
|
||||
import { Controller, Get, Param, ParseUUIDPipe } from "@nestjs/common";
|
||||
import { ApiOperation, ApiTags } from "@nestjs/swagger";
|
||||
|
||||
import { TrackingService } from './tracking.service';
|
||||
import { TrackingService } from "./tracking.service";
|
||||
|
||||
@ApiTags('tracking')
|
||||
@ApiTags("tracking")
|
||||
// @UseGuards(JwtAuthGuard) — TODO: integrate @edr/auth
|
||||
@Controller('tracking')
|
||||
@Controller("tracking")
|
||||
export class TrackingController {
|
||||
constructor(private readonly trackingService: TrackingService) {}
|
||||
|
||||
@Get(':consignmentId')
|
||||
@ApiOperation({ summary: 'Get the tracking timeline for a consignment' })
|
||||
findByConsignment(@Param('consignmentId', ParseUUIDPipe) consignmentId: string) {
|
||||
@Get(":consignmentId")
|
||||
@ApiOperation({ summary: "Get the tracking timeline for a consignment" })
|
||||
findByConsignment(
|
||||
@Param("consignmentId", ParseUUIDPipe) consignmentId: string,
|
||||
) {
|
||||
return this.trackingService.findByConsignment(consignmentId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user