mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
API: Add Swagger annotations #2132
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -21,7 +21,8 @@ import (
|
||||
|
||||
// OAuthToken creates a new access token for clients that authenticate with valid OAuth2 client credentials.
|
||||
//
|
||||
// POST /api/v1/oauth/token
|
||||
// @Tags Authentication
|
||||
// @Router /api/v1/oauth/token [post]
|
||||
func OAuthToken(router *gin.RouterGroup) {
|
||||
router.POST("/oauth/token", func(c *gin.Context) {
|
||||
// Prevent CDNs from caching this endpoint.
|
||||
|
||||
Reference in New Issue
Block a user