+26
spindle/server.go
+26
spindle/server.go
···
143
143
func (s *Spindle) Router() http.Handler {
144
144
mux := chi.NewRouter()
145
145
146
+
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
147
+
w.Write([]byte(
148
+
` ****
149
+
*** ***
150
+
*** ** ****** **
151
+
** * *****
152
+
* ** **
153
+
* * * ***************
154
+
** ** *# **
155
+
* ** ** *** **
156
+
* * ** ** * ******
157
+
* ** ** * ** * *
158
+
** ** *** ** ** *
159
+
** ** * ** * *
160
+
** **** ** * *
161
+
** *** ** ** **
162
+
*** ** *****
163
+
********************
164
+
**
165
+
*
166
+
#**************
167
+
**
168
+
********
169
+
170
+
This is a spindle server. More info at https://tangled.sh/@tangled.sh/core/tree/master/docs/spindle`))
171
+
})
146
172
mux.HandleFunc("/events", s.Events)
147
173
mux.HandleFunc("/owner", func(w http.ResponseWriter, r *http.Request) {
148
174
w.Write([]byte(s.cfg.Server.Owner))