Commit Graph

5 Commits (4906cabc6b8d91136973ad159f6a02209ea8e166)

Author SHA1 Message Date
Eugen Rochko 63c7fe8e48
Refactor controllers for statuses, accounts, and more ()
ThibG 868568d1c1 Make host_meta/webfinger replies cacheable (fixes ) ()
* Make host_meta/webfinger replies cacheable (fixes )

Drop common code for handling users and sessions as webfinger queries
are very basic, public APIs.

Also explicitly mark results as cacheable with “expires_in”.

* Add “Vary: Accept” header for caching since content-negociation is used
ThibG d567a382e3 Ensure well_known controllers use WEB_DOMAIN by including RoutingHelper ()
This fixes .
yhirano 8325866c61 Downgrade rubocop 0.48.1 => 0.46.0 ()
* downgrade rubocop 0.48.1 => 0.46.0

* exclude vendor/**/* from rubocop target files

* add frozen_string_literal comment line

* fix percent literal delimited by ( and )

* fix alignment

* remove comment disabling unknown cop
Matt Jankowski 137100dcf3 Clean up well-known routes/controllers ()
* Add request spec for host meta route returning xml

* Add routing spec for xrd routes

* Update well-known routes

* Move webfinger and host-meta actions to their own controllers