mirror of
https://github.com/neocities/neocities.git
synced 2025-04-28 19:22:32 +02:00
add supporter_status api route
This commit is contained in:
parent
03b052a3a7
commit
39b4cfc5ed
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue