Make accept the default content-type on AP/HTML routes

Fixes case with Accept: */* getting AP instead of HTML

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2019-03-05 12:24:29 +01:00
parent bacd1bfb02
commit 0f107606b1
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ defmodule MobilizonWeb.Router do
end
pipeline :activity_pub_and_html do
plug(:accepts, ["activity-json", "html"])
plug(:accepts, ["html", "activity-json"])
end
pipeline :rss do