fix: method
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import rateLimit from "express-rate-limit";
|
import rateLimit from "express-rate-limit";
|
||||||
import { inject } from "inversify";
|
import { inject } from "inversify";
|
||||||
import { controller, httpDelete, httpPatch, httpPost, requestBody, requestParam } from "inversify-express-utils";
|
import { controller, httpDelete, httpGet, httpPatch, httpPost, requestBody, requestParam } from "inversify-express-utils";
|
||||||
|
|
||||||
import { HttpStatus } from "../../../common";
|
import { HttpStatus } from "../../../common";
|
||||||
import { BaseController } from "../../../common/base/controller";
|
import { BaseController } from "../../../common/base/controller";
|
||||||
@@ -64,7 +64,7 @@ export class AdminWarrantyController extends BaseController {
|
|||||||
@ApiResponse("successful", HttpStatus.Ok)
|
@ApiResponse("successful", HttpStatus.Ok)
|
||||||
@ApiParam("id", "id of warranty")
|
@ApiParam("id", "id of warranty")
|
||||||
@ApiAuth()
|
@ApiAuth()
|
||||||
@httpDelete("/:id", Guard.authAdmin())
|
@httpGet("/:id", Guard.authAdmin())
|
||||||
public async getWarranty(@requestParam("id") id: string) {
|
public async getWarranty(@requestParam("id") id: string) {
|
||||||
const data = await this.warrantyService.getWarranty(id);
|
const data = await this.warrantyService.getWarranty(id);
|
||||||
return this.response(data);
|
return this.response(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user