change api to do IdMessage

This commit is contained in:
2024-11-27 16:13:43 -08:00
parent f87c4dab8f
commit f7aff4bbaa
10 changed files with 96 additions and 12 deletions

View File

@@ -65,7 +65,7 @@ func (s *Server) handleCreateSubmissionRequest(args [0]string, argsEscaped bool,
err error
)
var response *Submission
var response *ID
if m := s.cfg.Middleware; m != nil {
mreq := middleware.Request{
Context: ctx,
@@ -80,7 +80,7 @@ func (s *Server) handleCreateSubmissionRequest(args [0]string, argsEscaped bool,
type (
Request = struct{}
Params = struct{}
Response = *Submission
Response = *ID
)
response, err = middleware.HookMiddleware[
Request,