summaryrefslogtreecommitdiffstats
path: root/golang/api/handlers/entities.go
diff options
context:
space:
mode:
Diffstat (limited to 'golang/api/handlers/entities.go')
-rw-r--r--golang/api/handlers/entities.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/golang/api/handlers/entities.go b/golang/api/handlers/entities.go
index beed633a..a2fb7db8 100644
--- a/golang/api/handlers/entities.go
+++ b/golang/api/handlers/entities.go
@@ -75,6 +75,19 @@ func (d *getCreatorID) Handle(params operations.GetCreatorIDParams) middleware.R
return operations.NewGetCreatorIDOK().WithPayload(api_entity)
}
+func NewGetCreatorLookupHandler(db *pg.DB) operations.GetCreatorLookupHandler {
+ return &getCreatorLookup{db: db}
+}
+
+type getCreatorLookup struct {
+ db *pg.DB
+}
+
+func (d *getCreatorLookup) Handle(params operations.GetCreatorLookupParams) middleware.Responder {
+ // get-or-create editgroup based on current editor (session)
+ // insert new rev, ident, and edit
+ return middleware.NotImplemented("operation .GetCreatorLookup has not yet been implemented")
+}
func NewPostCreatorHandler(db *pg.DB) operations.PostCreatorHandler {
return &postCreator{db: db}