added 201 header
Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
parent
1369cab7fb
commit
1ad945fbf2
|
@ -380,13 +380,13 @@ class RequestController
|
||||||
} else {
|
} else {
|
||||||
$domain = new Domain(name: $name, content: $content);
|
$domain = new Domain(name: $name, content: $content);
|
||||||
if ($result = $this->domainRepository->insert(domain: $domain)) {
|
if ($result = $this->domainRepository->insert(domain: $domain)) {
|
||||||
|
$this->header = "201 Created";
|
||||||
$this->status = "201 Created";
|
$this->status = "201 Created";
|
||||||
$this->message = $result;
|
|
||||||
} else {
|
} else {
|
||||||
$this->header = "500 Server error";
|
$this->header = "500 Server error";
|
||||||
$this->status = "500 Server error";
|
$this->status = "500 Server error";
|
||||||
$this->message = $result;
|
|
||||||
}
|
}
|
||||||
|
$this->message = $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue