mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-03 07:01:35 -06:00
14 lines
266 B
Go
14 lines
266 B
Go
package api
|
|
|
|
import (
|
|
"encoding/json"
|
|
"net/http"
|
|
)
|
|
|
|
func (manager *ApiManagerCtx) configRooms(w http.ResponseWriter, r *http.Request) {
|
|
response := manager.rooms.Config()
|
|
|
|
w.Header().Set("Content-Type", "application/json")
|
|
json.NewEncoder(w).Encode(response)
|
|
}
|