2019-10-01 01:45:04 -06:00
|
|
|
# Pleroma: A lightweight social networking server
|
2020-03-01 22:08:45 -07:00
|
|
|
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
|
2019-10-01 01:45:04 -06:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
defmodule Pleroma.Web.MastodonAPI.SuggestionController do
|
|
|
|
use Pleroma.Web, :controller
|
|
|
|
|
2020-04-06 01:20:44 -06:00
|
|
|
alias Pleroma.Plugs.OAuthScopesPlug
|
|
|
|
|
2019-10-01 01:45:04 -06:00
|
|
|
require Logger
|
|
|
|
|
2020-04-06 01:20:44 -06:00
|
|
|
plug(OAuthScopesPlug, %{scopes: ["read"]} when action == :index)
|
|
|
|
|
2019-10-01 01:45:04 -06:00
|
|
|
@doc "GET /api/v1/suggestions"
|
2020-04-06 01:20:44 -06:00
|
|
|
def index(conn, params),
|
|
|
|
do: Pleroma.Web.MastodonAPI.MastodonAPIController.empty_array(conn, params)
|
2019-10-01 01:45:04 -06:00
|
|
|
end
|