This commit is contained in:
10
internal/config/service.go
Normal file
10
internal/config/service.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func (c *Config) Handle(w http.ResponseWriter, r *http.Request) {
|
||||
json.NewEncoder(w).Encode(c.Web)
|
||||
}
|
Reference in New Issue
Block a user