analytics/lib/plausible_web/plugs
hq1 6035618213
Add GET /capabilities to Plugins API (#3808)
* Add `GET /capabilities` to Plugins API

It aims to:

 - help the client verify the data-domain the token is associated with
 - list all the features available for the site's owner
   (and therefore determine availability of the subset of those for the current
   Plugins API caller)

The endpoint does not require authentication, in the sense that it'll
always respond with 200 OK. However when the token is provided,
a verification lookup is made.

* Remove IO.inspect() call

* Credo

* Aesthetics

* s/send_resp/send_error/

* Call preload just once
2024-02-21 12:41:56 +01:00
..
auth_plug.ex [pg migration] Delete account with multiple subscriptions (#3220) 2023-08-02 13:45:49 +02:00
authorize_plugins_api.ex Add GET /capabilities to Plugins API (#3808) 2024-02-21 12:41:56 +01:00
authorize_site_access.ex Add multiple imports per site (#3724) 2024-02-14 09:32:36 +01:00
authorize_stats_api.ex Add multiple imports per site (#3724) 2024-02-14 09:32:36 +01:00
crm_auth_plug.ex Allow admin access to locked dashboards (#1710) 2022-02-23 13:48:33 -06:00
error_handler.ex Partially revert #3661 - just keep the real errors wrapped, but don't display anything to the user (#3677) 2024-01-09 17:17:42 +01:00
favicon.ex Escape domain when creating URL for favicon (#2942) 2023-05-19 13:26:13 +02:00
first_launch_plug.ex Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
last_seen_plug.ex Formatting only changes - No code change (#75) 2020-06-08 10:35:13 +03:00
maybe_disable_registration.ex Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
no_robots.ex Prevent robots from looking too much into public dashboards (#3118) 2023-07-11 10:47:03 +02:00
require_account.ex Trigger email reverification on change (#3388) 2023-10-11 10:25:00 +02:00
require_logged_out.ex Add elixir action (#526) 2020-12-29 15:17:27 +02:00
session_timeout_plug.ex Formatting only changes - No code change (#75) 2020-06-08 10:35:13 +03:00
tracker.ex Revenue tracking: goal conversions and tracker script (#3019) 2023-06-14 10:23:11 +01:00