import "reflect-metadata";
import { Controller, Get, Patch, Route, Path, Body } from "@tsoa/runtime";
import haidateService from "~/services/japanese/armor/haidate";

@Route("items")
export class HaidateController extends Controller {
	/**
	 * Retrieves haidate (thigh guards) details
	 */
	@Get("/:id/japanese/armor/haidate")
	public async get(@Path() id: string | number): Promise<any> {
		return await haidateService.get(id);
	}

	/**
	 * Updates haidate (thigh guards) details
	 */
	@Patch("/:id/japanese/armor/haidate")
	public async patch(@Path() id: string | number, @Body() body: any): Promise<any> {
		return await haidateService.patch(id, body);
	}
}
