Allow listing languages, setting source language (#192)
[akkoma] / lib / pleroma / web / router.ex
index aff7b67db16a160a60b0d6b2de404b6883f82a36..175b1c4c07fc6d5305082554730c79c77754ac63 100644 (file)
@@ -462,6 +462,11 @@ defmodule Pleroma.Web.Router do
     put("/statuses/:id/emoji_reactions/:emoji", EmojiReactionController, :create)
   end
 
+  scope "/api/v1/akkoma", Pleroma.Web.AkkomaAPI do
+    pipe_through(:authenticated_api)
+    get("/translation/languages", TranslationController, :languages)
+  end
+
   scope "/api/v1", Pleroma.Web.MastodonAPI do
     pipe_through(:authenticated_api)