chore: rename project

No longer "Kobo" specific
This commit is contained in:
Evan Buss
2024-07-10 01:27:49 +00:00
parent 80d370d71c
commit c00f6a9750
6 changed files with 9 additions and 12 deletions

View File

@@ -14,7 +14,7 @@ RUN wget https://web.archive.org/web/20150803131026if_/https://kindlegen.s3.amaz
cp kindlegen/kindlegen /usr/local/bin/kindlegen && \
chmod +x /usr/local/bin/kindlegen
WORKDIR /src/kobo-opds-proxy/app/
WORKDIR /src/opds-proxy/app/
COPY go.mod .
COPY go.sum .
@@ -30,6 +30,6 @@ FROM gcr.io/distroless/static
COPY --from=base /usr/local/bin/kepubify /usr/local/bin/kepubify
COPY --from=base /usr/local/bin/kindlegen /usr/local/bin/kindlegen
COPY --from=base /src/kobo-opds-proxy/app/opds-proxy .
COPY --from=base /src/opds-proxy/app/opds-proxy .
CMD ["./opds-proxy"]

2
go.mod
View File

@@ -1,3 +1,3 @@
module github.com/evan-buss/kobo-opds-proxy
module github.com/evan-buss/opds-proxy
go 1.22

View File

@@ -5,7 +5,7 @@ import (
"net/url"
"strings"
"github.com/evan-buss/kobo-opds-proxy/opds"
"github.com/evan-buss/opds-proxy/opds"
)
type FeedViewModel struct {

View File

@@ -5,7 +5,7 @@ import (
"html/template"
"io"
"github.com/evan-buss/kobo-opds-proxy/opds"
"github.com/evan-buss/opds-proxy/opds"
)
//go:embed *

View File

@@ -13,9 +13,9 @@ import (
"strings"
"time"
"github.com/evan-buss/kobo-opds-proxy/convert"
"github.com/evan-buss/kobo-opds-proxy/html"
"github.com/evan-buss/kobo-opds-proxy/opds"
"github.com/evan-buss/opds-proxy/convert"
"github.com/evan-buss/opds-proxy/html"
"github.com/evan-buss/opds-proxy/opds"
)
func main() {

View File

@@ -1,11 +1,10 @@
package main
import (
"fmt"
"net/http"
"os"
"github.com/evan-buss/kobo-opds-proxy/html"
"github.com/evan-buss/opds-proxy/html"
)
type Middleware func(http.HandlerFunc) http.HandlerFunc
@@ -21,8 +20,6 @@ func NewServer() *Server {
port = "8080"
}
fmt.Println(os.Getenv("PATH"))
router := http.NewServeMux()
router.HandleFunc("GET /{$}", handleHome())
router.HandleFunc("GET /feed", handleFeed("tmp/"))