ubicloud/routes
Jeremy Evans 9dbe11fa6a Only accept json requests for the postgres metrics route
Previously, this would have accepted a normal request, and returned
a json response. However, if there were any errors in the request
(and it is easy to introduce errors with invalid start/end times),
it would result in using the fallback web error handler. Since we
never want this route to handle non-json requests, it's easiest to
just enforce that, so we don't have to worry about error handling
for non-json requests.
2025-08-09 00:56:41 +09:00
..
project Only accept json requests for the postgres metrics route 2025-08-09 00:56:41 +09:00
runtime Use r.is to check for fully routed path only once instead of twice 2025-06-20 05:14:52 +09:00
webhook Use the Roda plain_hash_response_headers plugin 2025-05-13 06:04:31 +09:00
account.rb Add raise_web_error method to DRY up web-specific CloverError raising 2025-08-08 05:06:18 +09:00
cli.rb Add audit logging to all route actions 2025-05-13 06:38:49 +09:00
github.rb Use typecast_params in the github route 2025-05-20 05:49:38 +09:00
project.rb Use handle_validation_failure earlier in project create route 2025-08-08 01:52:14 +09:00