mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Return server name
This commit is contained in:
parent
710f9856be
commit
52835f2d1f
1 changed files with 2 additions and 1 deletions
|
@ -6,9 +6,10 @@ class Api::V1::ServersController < Api::V1::BaseController
|
||||||
private
|
private
|
||||||
|
|
||||||
def active_servers
|
def active_servers
|
||||||
Server.active.map do |s|
|
Server.active.map do |s|
|
||||||
{
|
{
|
||||||
id: s.id,
|
id: s.id,
|
||||||
|
name: s.name,
|
||||||
description: s.description,
|
description: s.description,
|
||||||
dns: s.dns,
|
dns: s.dns,
|
||||||
ip: s.ip,
|
ip: s.ip,
|
||||||
|
|
Loading…
Reference in a new issue