diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2018-08-14 04:27:28 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2018-08-27 15:09:05 +0200 |
commit | 6e030129fb33926e6a5bd75c27af6f657f9da2a5 (patch) | |
tree | 540d6c934f25945dbb5eb2455df81b6f92083fef /lib/pleroma/web/router.ex | |
parent | a5adb251ab101e7ad1084a772b66b049998c72a5 (diff) | |
download | pleroma-6e030129fb33926e6a5bd75c27af6f657f9da2a5.tar.gz |
[MastodonAPI] Add filters
Diffstat (limited to 'lib/pleroma/web/router.ex')
-rw-r--r-- | lib/pleroma/web/router.ex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 927323794..b212a2909 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -154,6 +154,12 @@ defmodule Pleroma.Web.Router do post("/domain_blocks", MastodonAPIController, :block_domain) delete("/domain_blocks", MastodonAPIController, :unblock_domain) + get("/filters", MastodonAPIController, :get_filters) + post("/filters", MastodonAPIController, :create_filter) + get("/filters/:id", MastodonAPIController, :get_filter) + put("/filters/:id", MastodonAPIController, :update_filter) + delete("/filters/:id", MastodonAPIController, :delete_filter) + get("/suggestions", MastodonAPIController, :suggestions) end |