Skip to content

Commit ab79c3f

Browse files
committed
feat(staff_api): add auth_authority request
1 parent 7fb6fe9 commit ab79c3f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/place/staff_api.cr

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ class Place::StaffAPI < PlaceOS::Driver
109109
}
110110
end
111111

112+
def auth_authority
113+
response = get("/auth/authority")
114+
raise "unexpected response for /auth/authority: #{response.status_code}\n#{response.body}" unless response.success?
115+
JSON.parse(response.body)
116+
end
117+
112118
def get_system(id : String, complete : Bool = false)
113119
response = get("/api/engine/v2/systems/#{id}?complete=#{complete}", headers: authentication)
114120
raise "unexpected response for system id #{id}: #{response.status_code}\n#{response.body}" unless response.success?

0 commit comments

Comments
 (0)