routes: remove legacy /user/index and /artist/index API endpoints.

These endpoints get zero traffic.
This commit is contained in:
evazion
2020-12-23 19:48:35 -06:00
parent dbb66ace90
commit ca742db07a
7 changed files with 0 additions and 35 deletions

View File

@@ -483,15 +483,6 @@ class User < ApplicationRecord
]
end
def to_legacy_json
return {
"name" => name,
"id" => id,
"level" => level,
"created_at" => created_at.strftime("%Y-%m-%d %H:%M")
}.to_json
end
def api_token
api_key.try(:key)
end