Add a stats agent for storing data from expensive queries.

This commit is contained in:
eal 2018-01-13 18:24:16 +02:00
commit 9717166d10
4 changed files with 49 additions and 3 deletions

View file

@ -106,6 +106,7 @@ defmodule Pleroma.Web.Router do
scope "/api/v1", Pleroma.Web.MastodonAPI do
pipe_through :api
get "/instance", MastodonAPIController, :masto_instance
get "/instance/peers", MastodonAPIController, :peers
post "/apps", MastodonAPIController, :create_app
get "/custom_emojis", MastodonAPIController, :custom_emojis