Add shards debug endpoint
This commit is contained in:
parent
b2187bde4e
commit
db5249e5ed
1 changed files with 20 additions and 0 deletions
20
api/debug/shards.cfm
Normal file
20
api/debug/shards.cfm
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
<cfsetting showdebugoutput="false">
|
||||||
|
<cfsetting enablecfoutputonly="true">
|
||||||
|
<cfcontent type="application/json; charset=utf-8" reset="true">
|
||||||
|
|
||||||
|
<cfquery name="q" datasource="payfrit">
|
||||||
|
SELECT ID, UUID, IsActive
|
||||||
|
FROM BeaconShards
|
||||||
|
ORDER BY ID
|
||||||
|
</cfquery>
|
||||||
|
|
||||||
|
<cfset shards = []>
|
||||||
|
<cfloop query="q">
|
||||||
|
<cfset arrayAppend(shards, {
|
||||||
|
"ID": q.ID,
|
||||||
|
"UUID": q.UUID,
|
||||||
|
"IsActive": q.IsActive
|
||||||
|
})>
|
||||||
|
</cfloop>
|
||||||
|
|
||||||
|
<cfoutput>#serializeJSON({ "OK": true, "Shards": shards })#</cfoutput>
|
||||||
Reference in a new issue