Add support to make invidious API-only via flag (#2363)

This commit is contained in:
syeopite
2021-10-02 20:04:02 +00:00
committed by GitHub
parent 3e781b7d13
commit 81b12b8001
10 changed files with 83 additions and 63 deletions

View File

@@ -1,3 +1,5 @@
{% skip_file if flag?(:api_only) %}
module Invidious::Routes::Misc
def self.home(env)
preferences = env.get("preferences").as(Preferences)