+ scope "/api", Pleroma.Web do
+ if @public do
+ pipe_through(:api)
+ else
+ pipe_through(:authenticated_api)
+ end
+
+ get("/statuses/public_timeline", TwitterAPI.Controller, :public_timeline)
+
+ get(
+ "/statuses/public_and_external_timeline",
+ TwitterAPI.Controller,
+ :public_and_external_timeline
+ )
+
+ get("/statuses/networkpublic_timeline", TwitterAPI.Controller, :public_and_external_timeline)
+ end
+