Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changing routes and responses #501

Open
AienTech opened this issue Apr 21, 2019 · 2 comments
Open

changing routes and responses #501

AienTech opened this issue Apr 21, 2019 · 2 comments

Comments

@AienTech
Copy link

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
Copy link

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

@AienTech
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants