fix route child2 [Put,Delete]

This commit is contained in:
AdisakKanthawilang 2024-01-30 13:37:45 +07:00
parent f6516050fd
commit 1384b41b9b

View file

@ -148,7 +148,7 @@ export class OrgChild2Controller extends Controller {
*
* @param {string} id Guid, *Id Child2
*/
@Put("child2/{id}")
@Put("{id}")
@Example([
{
orgChild2Name: "string", //ชื่อหน่วยงาน
@ -220,7 +220,7 @@ export class OrgChild2Controller extends Controller {
*
* @param {string} id Guid, *Id Child2
*/
@Delete("Child2/{id}")
@Delete("{id}")
async delete(@Path() id: string) {
try {
const child2 = await this.child2Repository.findOne({ where: { id } });