1
0
Fork 0
mirror of https://github.com/neocities/neocities.git synced 2025-05-15 08:57:17 +02:00

add supporter_status api route

This commit is contained in:
actualaardvark 2025-02-21 17:28:14 -08:00
parent 03b052a3a7
commit 39b4cfc5ed

View file

@ -227,6 +227,12 @@ def api_info_for(site)
} }
end end
get '/api/supporter_status' do
require_api_credentials
api_success supporter: current_site.supporter?
end
# Catch-all for missing api calls # Catch-all for missing api calls
get '/api/:name' do get '/api/:name' do