WIP: Node. New generation #1
@ -5,7 +5,6 @@ import (
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
log "github.com/sirupsen/logrus"
|
||||
@ -227,15 +226,15 @@ func Serve(listen string, es ESConf) {
|
||||
|
||||
// Simple and clean SSR UI
|
||||
ssr := newSSR("./templates", es)
|
||||
r.HandleFunc("/ssr", ssr.ssrRootHandler)
|
||||
r.HandleFunc("/", ssr.ssrRootHandler)
|
||||
|
||||
http.Handle("/", r)
|
||||
|
||||
srv := http.Server{
|
||||
Handler: r,
|
||||
Addr: listen,
|
||||
WriteTimeout: 15 * time.Second,
|
||||
ReadTimeout: 15 * time.Second,
|
||||
// WriteTimeout: 15 * time.Second,
|
||||
// ReadTimeout: 15 * time.Second,
|
||||
}
|
||||
|
||||
log.Print("Listening IDEC API on ", listen)
|
||||
|
@ -254,7 +254,7 @@ func (es ESConf) GetUEchoMessageHashes(echoes string) []string {
|
||||
o, err := strconv.Atoi(oflim[0])
|
||||
l, err := strconv.Atoi(oflim[1])
|
||||
if err != nil {
|
||||
log.Print(err)
|
||||
log.Error(err)
|
||||
} else {
|
||||
offset = o
|
||||
limit = l
|
||||
|
@ -1,4 +1,10 @@
|
||||
{{ define "post" }}
|
||||
<!--
|
||||
Post component.
|
||||
|
||||
How to use:
|
||||
{ template "post" .Posts[0] }
|
||||
-->
|
||||
|
||||
<div class="card container dynamic-post dynamic-opacity-95 p-3 mb-3">
|
||||
<div class="card-body p-3">
|
||||
|
Loading…
Reference in New Issue
Block a user