()
| 137 | } |
| 138 | |
| 139 | func (s *Server) printBanner() { |
| 140 | fmt.Printf("taskmd web server running at http://localhost:%d\n", s.config.Port) |
| 141 | fmt.Printf("Watching %s for changes\n", s.config.ScanDir) |
| 142 | if s.config.ReadOnly { |
| 143 | fmt.Println("Read-only mode: editing is disabled") |
| 144 | } |
| 145 | if s.config.Dev { |
| 146 | fmt.Println("Dev mode: CORS enabled for http://localhost:5173") |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | func (s *Server) mountStatic(mux *http.ServeMux) { |
| 151 | if s.config.Dev { |
no outgoing calls