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