mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
API: Add missing Swagger endpoint annotations and update swagger.json
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -12,10 +12,14 @@ import (
|
||||
"github.com/photoprism/photoprism/pkg/service/http/header"
|
||||
)
|
||||
|
||||
// OAuthAuthorize should gather consent and authorization from resource owners when using the
|
||||
// Authorization Code Grant flow, see https://github.com/photoprism/photoprism/issues/4368.
|
||||
// OAuthAuthorize (placeholder) for Authorization Code Grant consent.
|
||||
//
|
||||
// GET /api/v1/oauth/authorize
|
||||
// @Summary OAuth2 authorization endpoint (not implemented)
|
||||
// @Id OAuthAuthorize
|
||||
// @Tags Authentication
|
||||
// @Produce json
|
||||
// @Failure 405 {object} i18n.Response
|
||||
// @Router /api/v1/oauth/authorize [get]
|
||||
func OAuthAuthorize(router *gin.RouterGroup) {
|
||||
router.GET("/oauth/authorize", func(c *gin.Context) {
|
||||
// Prevent CDNs from caching this endpoint.
|
||||
|
||||
Reference in New Issue
Block a user