API: Add .well-known/oauth-authorization-server route handler #808 #3943

This commit also adds an /api/v1/oauth/logout endpoint that allows
clients to delete their sessions (access tokens) as needed.

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-01-08 14:53:39 +01:00
parent f8e0615cc8
commit 0e4d81853c
33 changed files with 555 additions and 183 deletions

View File

@@ -19,9 +19,10 @@ import (
// PhotoUnstack removes a file from an existing photo stack.
//
// Request Parameters:
// - uid: string Photo UID as returned by the API
// - file_uid: string File UID as returned by the API
// The request parameters are:
//
// - uid: string Photo UID as returned by the API
// - file_uid: string File UID as returned by the API
//
// POST /api/v1/photos/:uid/files/:file_uid/unstack
func PhotoUnstack(router *gin.RouterGroup) {