lift things out of backend/

This commit is contained in:
soup 2024-11-15 15:20:56 -05:00
parent e8d775d96d
commit 9e03bdb2de
21 changed files with 22 additions and 22 deletions

View file

@ -1,10 +1,10 @@
.PHONY: build
build:
go build backend/bin/shelves.go
go build bin/shelves.go
run:
go run backend/bin/shelves.go
go run bin/shelves.go
watch:
fd | entr -cr make run

View file

@ -7,9 +7,9 @@ import (
_ "github.com/mattn/go-sqlite3"
"shelves/backend/db"
"shelves/backend/httpx"
"shelves/backend/routes"
"shelves/db"
"shelves/httpx"
"shelves/routes"
)
func main() {

View file

@ -4,8 +4,8 @@ import (
"log"
"net/http"
"net/url"
"shelves/backend/errorsx"
"shelves/backend/urls"
"shelves/errorsx"
"shelves/urls"
)
func SeeOther(w http.ResponseWriter, location string) {

View file

@ -5,7 +5,7 @@ import (
"database/sql"
"log"
"net/http"
"shelves/backend/auth"
"shelves/auth"
"time"
)

View file

@ -2,8 +2,8 @@ package routes
import (
"net/http"
"shelves/backend/httpx"
"shelves/backend/templates"
"shelves/httpx"
"shelves/templates"
)
type homeTemplate struct {

View file

@ -5,11 +5,11 @@ import (
"html/template"
"net/http"
"net/url"
"shelves/backend/auth"
"shelves/backend/errorsx"
"shelves/backend/forms"
"shelves/backend/httpx"
"shelves/backend/templates"
"shelves/auth"
"shelves/errorsx"
"shelves/forms"
"shelves/httpx"
"shelves/templates"
)
type loginForm struct {

View file

@ -3,7 +3,7 @@ package routes
import (
"html/template"
"net/http"
"shelves/backend/httpx"
"shelves/httpx"
"strings"
"time"

View file

@ -6,11 +6,11 @@ import (
"html/template"
"net/http"
"net/url"
"shelves/backend/auth"
"shelves/backend/errorsx"
"shelves/backend/forms"
"shelves/backend/httpx"
"shelves/backend/templates"
"shelves/auth"
"shelves/errorsx"
"shelves/forms"
"shelves/httpx"
"shelves/templates"
)
func settingsRenderView(f settingsForm, e settingsFormErrors) template.HTML {

View file

@ -2,7 +2,7 @@ package templates
import (
"html/template"
"shelves/backend/auth"
"shelves/auth"
)
type PageBase struct {