updated pathing in main and updated how to find migrations

This commit is contained in:
James Tombleson 2024-04-21 08:58:06 -07:00
parent 8d8781eac4
commit 029710ad31

View File

@ -5,8 +5,8 @@ import (
"log"
"net/http"
"git.jamestombleson.com/jtom38/go-cook/api/services"
v1 "git.jamestombleson.com/jtom38/go-cook/api/handlers/v1"
v1 "git.jamestombleson.com/jtom38/go-cook/internal/handlers/v1"
"git.jamestombleson.com/jtom38/go-cook/internal/services"
_ "github.com/glebarez/go-sqlite"
"github.com/go-playground/validator"
@ -34,7 +34,7 @@ func main() {
panic(err)
}
err = goose.Up(db, "api/migrations")
err = goose.Up(db, "../internal/migrations")
if err != nil {
panic(err)
}