From 4ebe8cac0f0ecd1068765523a58dd2d9fc9f8b99 Mon Sep 17 00:00:00 2001 From: Alexander Strizhakov Date: Fri, 18 Dec 2020 07:57:05 +0300 Subject: [PATCH] route change --- lib/pleroma/web/router.ex | 2 +- test/pleroma/web/admin_api/controllers/tag_controller_test.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 17d7bee01..bf5bf8e19 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -160,7 +160,7 @@ defmodule Pleroma.Web.Router do put("/users/disable_mfa", AdminAPIController, :disable_mfa) - get("/users/tags", TagController, :index) + get("/user_tags", TagController, :index) patch("/users/tags", TagController, :update) delete("/users/tags", TagController, :delete) diff --git a/test/pleroma/web/admin_api/controllers/tag_controller_test.exs b/test/pleroma/web/admin_api/controllers/tag_controller_test.exs index ab5e7fd54..34b532a39 100644 --- a/test/pleroma/web/admin_api/controllers/tag_controller_test.exs +++ b/test/pleroma/web/admin_api/controllers/tag_controller_test.exs @@ -33,7 +33,7 @@ defmodule Pleroma.Web.AdminAPI.TagControllerTest do response = conn |> put_req_header("content-type", "application/json") - |> get("/api/pleroma/admin/users/tags") + |> get("/api/pleroma/admin/user_tags") |> json_response_and_validate_schema(200) assert [