mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
API: Add proof-of-concept for generating Swagger API docs #2132
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
12
internal/server/api_docs.go
Normal file
12
internal/server/api_docs.go
Normal file
@@ -0,0 +1,12 @@
|
||||
//go:build debug
|
||||
// +build debug
|
||||
|
||||
package server
|
||||
|
||||
import (
|
||||
"github.com/photoprism/photoprism/internal/api"
|
||||
)
|
||||
|
||||
func init() {
|
||||
registerApiDocs = api.GetDocs
|
||||
}
|
||||
Reference in New Issue
Block a user