Expose /manifest.json for PWA

This commit is contained in:
Alex Gleason 2021-11-24 16:45:05 -06:00
commit cb9359335f
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
5 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1,14 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ManifestController do
use Pleroma.Web, :controller
plug(:skip_auth when action == :show)
@doc "GET /manifest.json"
def show(conn, _params) do
render(conn, "manifest.json")
end
end