v1.27.0-a #10
@ -8,7 +8,11 @@
|
|||||||
<td>{{.Start}}</td>
|
<td>{{.Start}}</td>
|
||||||
<td>{{.End}}</td>
|
<td>{{.End}}</td>
|
||||||
<td>{{if .Result}}<span class="success">success</span>{{else}}<span class="error">error</span>{{end}}</td>
|
<td>{{if .Result}}<span class="success">success</span>{{else}}<span class="error">error</span>{{end}}</td>
|
||||||
<td>{{.Err}}</td>
|
<td style="max-width: 25vh">
|
||||||
|
<div style="overflow: hidden; white-space: nowrap; text-overflow: ellipsis" title="{{.Err}}">
|
||||||
|
{{.Err}}
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -39,12 +39,9 @@ func GetSrv(ctx context.Context, deps *deps.Deps) (*http.Server, error) {
|
|||||||
}
|
}
|
||||||
api.Routes(mx.PathPrefix("/api").Subrouter(), deps)
|
api.Routes(mx.PathPrefix("/api").Subrouter(), deps)
|
||||||
|
|
||||||
basePath := basePath
|
|
||||||
|
|
||||||
var static fs.FS = static
|
var static fs.FS = static
|
||||||
if webDev {
|
if webDev {
|
||||||
basePath = "cmd/lotus-provider/web/static"
|
static = os.DirFS("./cmd/lotus-provider/web")
|
||||||
static = os.DirFS(basePath)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mx.NotFoundHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
mx.NotFoundHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
Loading…
Reference in New Issue
Block a user