lift things out of backend/
This commit is contained in:
parent
e8d775d96d
commit
9e03bdb2de
4
Makefile
4
Makefile
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
@ -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) {
|
||||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"database/sql"
|
||||
"log"
|
||||
"net/http"
|
||||
"shelves/backend/auth"
|
||||
"shelves/auth"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
|
@ -2,8 +2,8 @@ package routes
|
|||
|
||||
import (
|
||||
"net/http"
|
||||
"shelves/backend/httpx"
|
||||
"shelves/backend/templates"
|
||||
"shelves/httpx"
|
||||
"shelves/templates"
|
||||
)
|
||||
|
||||
type homeTemplate struct {
|
||||
|
|
@ -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 {
|
||||
|
|
@ -3,7 +3,7 @@ package routes
|
|||
import (
|
||||
"html/template"
|
||||
"net/http"
|
||||
"shelves/backend/httpx"
|
||||
"shelves/httpx"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
|
|
@ -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 {
|
||||
|
|
@ -2,7 +2,7 @@ package templates
|
|||
|
||||
import (
|
||||
"html/template"
|
||||
"shelves/backend/auth"
|
||||
"shelves/auth"
|
||||
)
|
||||
|
||||
type PageBase struct {
|
||||
Loading…
Reference in a new issue