2018-12-23 13:04:54 -07:00
|
|
|
# Pleroma: A lightweight social networking server
|
2018-12-31 08:41:47 -07:00
|
|
|
# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
|
2018-12-23 13:04:54 -07:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2017-09-06 11:06:25 -06:00
|
|
|
defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
|
|
|
|
use Pleroma.Web, :controller
|
2019-07-28 14:30:10 -06:00
|
|
|
|
2017-11-18 18:22:07 -07:00
|
|
|
require Logger
|
2017-09-06 11:06:25 -06:00
|
|
|
|
2019-08-26 06:16:40 -06:00
|
|
|
action_fallback(Pleroma.Web.MastodonAPI.FallbackController)
|
2018-06-03 11:28:11 -06:00
|
|
|
|
2019-09-06 12:50:00 -06:00
|
|
|
# Stubs for unimplemented mastodon api
|
|
|
|
#
|
2017-09-09 11:19:13 -06:00
|
|
|
def empty_array(conn, _) do
|
|
|
|
Logger.debug("Unimplemented, returning an empty array")
|
|
|
|
json(conn, [])
|
|
|
|
end
|
2017-11-10 06:24:39 -07:00
|
|
|
|
2018-03-09 11:56:21 -07:00
|
|
|
def empty_object(conn, _) do
|
|
|
|
Logger.debug("Unimplemented, returning an empty object")
|
2018-08-13 20:27:28 -06:00
|
|
|
json(conn, %{})
|
|
|
|
end
|
2017-09-06 11:06:25 -06:00
|
|
|
end
|