- Clean up some logging - Properly store likes in db
This commit is contained in:
parent
c7f875a9c5
commit
03ca524c99
12 changed files with 222 additions and 44 deletions
|
@ -28,7 +28,6 @@ package webpublic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io/fs"
|
||||
"net/http"
|
||||
|
||||
|
@ -44,10 +43,6 @@ type Server struct {
|
|||
|
||||
func New(addr string, duckImg *string, duckFs fs.FS) *Server {
|
||||
handler := http.NewServeMux()
|
||||
handler.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(500)
|
||||
fmt.Fprint(w, "not implemented")
|
||||
})
|
||||
handler.Handle("/api/", http.StripPrefix("/api", api.BuildApiRouter()))
|
||||
handler.HandleFunc("GET /.well-known/webfinger", api.WellKnownWebfinger)
|
||||
handler.HandleFunc("GET /.well-known/nodeinfo", api.NodeInfoOverview)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue