」 feat(Requests): now use the config :D

This commit is contained in:
y-syo
2025-05-02 15:04:41 +02:00
parent 2352a865bf
commit bfef8ed76e
7 changed files with 105 additions and 64 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/30 09:42:18 by adjoly #+# #+# */
/* Updated: 2025/04/30 15:17:15 by mmoussou ### ########.fr */
/* Updated: 2025/05/02 14:53:08 by mmoussou ### ########.fr */
/* */
/* ************************************************************************** */
@ -68,6 +68,8 @@ void Delete::parse(std::string const &data) {
Response Delete::execute(void) {
http::Response response;
this->_target = this->_route->getRootDir() + this->_target;
try {
if (std::remove(this->_target.c_str()))
throw std::runtime_error("can't remove file, FF");