Skip to content

Commit

Permalink
Merge pull request #89 from Pomog/den_dev
Browse files Browse the repository at this point in the history
Den dev
  • Loading branch information
Pomog committed Jan 2, 2024
2 parents f361ad2 + aaf7d23 commit df2bcb5
Show file tree
Hide file tree
Showing 46 changed files with 268 additions and 3,282 deletions.
4 changes: 4 additions & 0 deletions cmd/web/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ func main() {
app.GitHubClientSecret = "2327f7f8677894e2726f70696d9321399efb6b61"
app.GitHubRedirectURL = "http://localhost:8080/github-callback"

app.GoogleClientID = "1045980296590-9c2dpdmdbp17kiih3oev5nsk55a33q29.apps.googleusercontent.com"
app.GoogleClientSecret = "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"
app.GoogleRedirectURL = "http://localhost:8080/google-callback"

//the list of games that are represented and will be covered on site.
app.GamesList = map[string]string{
"Lineage 2": "L2",
Expand Down
3 changes: 3 additions & 0 deletions cmd/web/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ func routes(a *config.AppConfig) http.Handler {
mux.HandleFunc("/login-github", handler.Repo.LoginWithGitHubHandler)
mux.HandleFunc("/github-callback", handler.Repo.CallbackGitHubHandler)

mux.HandleFunc("/login-google", handler.Repo.LoginWithGoogleHandler)
mux.HandleFunc("/google-callback", handler.Repo.CallbackGoogleHandler)

return mux
}

Expand Down
29 changes: 0 additions & 29 deletions example/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions example/config/db.go

This file was deleted.

29 changes: 0 additions & 29 deletions example/config/migrate.go

This file was deleted.

88 changes: 0 additions & 88 deletions example/config/migrations.go

This file was deleted.

43 changes: 0 additions & 43 deletions example/controller/categoryController.go

This file was deleted.

28 changes: 0 additions & 28 deletions example/controller/controllerHelpers.go

This file was deleted.

Loading

0 comments on commit df2bcb5

Please sign in to comment.