mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-02 09:45:13 +00:00
7 lines
180 B
Elixir
7 lines
180 B
Elixir
|
defmodule Mix.Tasks.Pleroma.OpenapiSpec do
|
||
|
def run([path]) do
|
||
|
spec = Pleroma.Web.ApiSpec.spec(server_specific: false) |> Jason.encode!()
|
||
|
File.write(path, spec)
|
||
|
end
|
||
|
end
|