fix route child2 [Put,Delete]
This commit is contained in:
parent
f6516050fd
commit
1384b41b9b
1 changed files with 2 additions and 2 deletions
|
|
@ -148,7 +148,7 @@ export class OrgChild2Controller extends Controller {
|
||||||
*
|
*
|
||||||
* @param {string} id Guid, *Id Child2
|
* @param {string} id Guid, *Id Child2
|
||||||
*/
|
*/
|
||||||
@Put("child2/{id}")
|
@Put("{id}")
|
||||||
@Example([
|
@Example([
|
||||||
{
|
{
|
||||||
orgChild2Name: "string", //ชื่อหน่วยงาน
|
orgChild2Name: "string", //ชื่อหน่วยงาน
|
||||||
|
|
@ -220,7 +220,7 @@ export class OrgChild2Controller extends Controller {
|
||||||
*
|
*
|
||||||
* @param {string} id Guid, *Id Child2
|
* @param {string} id Guid, *Id Child2
|
||||||
*/
|
*/
|
||||||
@Delete("Child2/{id}")
|
@Delete("{id}")
|
||||||
async delete(@Path() id: string) {
|
async delete(@Path() id: string) {
|
||||||
try {
|
try {
|
||||||
const child2 = await this.child2Repository.findOne({ where: { id } });
|
const child2 = await this.child2Repository.findOne({ where: { id } });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue