dadi / cdn

CDN is a Just-in-time asset manipulation and delivery application, providing a complete content distribution/delivery solution
https://dadi.cloud/en/cdn
Other
217 stars 43 forks source link

changing routes and responses #501

Open AienTech opened 5 years ago

AienTech commented 5 years ago

Hi there, thanks for this great project.

As the title suggests, I'd like to somehow change the routes (e.g remove the /hello) and if possible, change the response of the routes. As an example, instead of getting the full path of the not founded file:

{
"statusCode": 404,
"message": "File not found: /mnt/volume/..."
}

I'd like to return something like:

{
"status": 404,
"message": "file not found!"
}

is it possible to do that? and if yes, how? I tried to go through the documentation, but couldn't find any solutions for this one :)

thanks in advance

jakobkuehne commented 5 years ago

Did you find a solution? I have the same question.

AienTech commented 5 years ago

@jakobkuehne I used the dadi/cdn source code and changed it back there.