Skip to content

Commit 1dd9d32

Browse files
committed
docs: Update README with development commands and enhance callback controller documentation
1 parent e076396 commit 1dd9d32

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ An API designed to manage events, supporting features like event creation, user
117117
- **Repositories**: Handle database interactions.
118118
- **Models**: Define data structures.
119119

120+
121+
### Development Commands
122+
123+
- `./scripts/migrate.sh up`
124+
- `./scripts/migrate.sh down`
125+
- `./scripts/migrate.sh version`
126+
120127
## Contributing
121128

122129
Contributions are welcome! Please open an issue or submit a pull request for any suggestions or improvements.

internal/auth/callback/controller.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ type Controller struct {
1111
Service Service
1212
}
1313

14+
// @Summary Handle the callback from the authentication provider
15+
// @Description Handle the callback from the authentication provider
16+
// @Tags Auth
17+
// @Accept json
18+
// @Produce json
19+
// @Param provider path string true "Provider name"
20+
// @Param code query string true "Code from the provider"
21+
// @Success 200 {object} string
22+
// @Failure 400 {object} string
23+
// @Router /auth/{provider}/callback [get]
1424
func (c *Controller) HandleCallback(ctx *gin.Context) {
1525
provider := ctx.Param("provider")
1626
code := ctx.Query("code")

0 commit comments

Comments
 (0)