Skip to content

Commit 912a418

Browse files
committed
[Hack][Routes] Dropping /.json with 444
1 parent ba6708c commit 912a418

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/routes.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@
284284

285285
Coderwall::Application.routes.draw do
286286

287+
# We get 10K's of requests for this route. We should configure nginx to drop these.
288+
get '/.json', to: proc { [444, {}, ['']] }
289+
get '/teams/.json', to: proc { [444, {}, ['']] }
290+
287291
match 'protips/update', via: %w(get put)
288292
match 'protip/update' , via: %w(get put)
289293

0 commit comments

Comments
 (0)