API: Refactor OAuth2 and OIDC endpoints #782

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-06-27 10:16:12 +02:00
parent 3c9aaf8dc1
commit 7dff5511bc
7 changed files with 69 additions and 18 deletions

View File

@@ -41,6 +41,6 @@ func OAuthAuthorize(router *gin.RouterGroup) {
// TODO
// Send response.
c.JSON(http.StatusOK, gin.H{"status": StatusSuccess})
c.JSON(http.StatusMethodNotAllowed, gin.H{"status": StatusFailed})
})
}