-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement Spotify Authentication (#1)
* wip: spotify auth * wip: Finalize spotify auth * wip: log.Trace resolved itself lmao * wip: Create http wrapper * chore(ci): Add CI workflow for PRs * fix(ci): Fix install step * chore: Fix critical lint errors * chore: Restructure Spotify package * chore: Move web files to correct directory * chore: Refactor globals to be service arguments * chore: Restructure application code * chore: Fix all (?) lint errors * chore: Fix lint errors from new rules * chore: Fix comment * chore(request): Make PostForm use Post * fix: Fix Spotify Settings template * fix(spotify-auth): Fix refresh request I missed that Spotify does not always return a new refresh token when refreshing the access token which lead to the app saving an empty refresh token the first time it was used. * chore: Remove DB from spotify service
- Loading branch information
1 parent
c96c0ed
commit 4751e26
Showing
32 changed files
with
974 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "Build PR" | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
name: "Build" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go-version: ["1.23"] | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
- name: "Setup Go ${{ matrix.go-version }}" | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: "Install dependencies" | ||
run: "go mod download" | ||
- name: "Lint" | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.60 | ||
- name: "Build" | ||
run: "go build -o cmd/server/bin/server cmd/server/main.go" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
*.dll | ||
*.so | ||
*.dylib | ||
bin/ | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
linters: | ||
enable: | ||
- misspell | ||
- perfsprint | ||
- noctx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package router | ||
|
||
import ( | ||
"beyerleinf/spotify-backup/internal/server/api/handler" | ||
"beyerleinf/spotify-backup/pkg/router" | ||
|
||
"github.com/labstack/echo/v4" | ||
) | ||
|
||
// HealthRoutes returns all routes associated with the /health route. | ||
func HealthRoutes(healthHandler *handler.HealthHandler) router.RouteGroup { | ||
return router.RouteGroup{ | ||
Prefix: "/health", | ||
Routes: []router.Route{ | ||
{ | ||
Method: echo.GET, | ||
Path: "", | ||
Handler: healthHandler.GetHealthStatus, | ||
}, | ||
}, | ||
} | ||
} |
Oops, something went wrong.