Move captcha endpoint into Login route
parent
3b1837a99b
commit
919413e2b9
@ -1,8 +0,0 @@
|
|||||||
module Invidious::Routes::Captcha
|
|
||||||
def self.get(env)
|
|
||||||
headers = HTTP::Headers{":authority" => "accounts.google.com"}
|
|
||||||
response = YT_POOL.client &.get(env.request.resource, headers)
|
|
||||||
env.response.headers["Content-Type"] = response.headers["Content-Type"]
|
|
||||||
response.body
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
Reference in New Issue