Skip to content

Commit

Permalink
poc
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Ding <jackding@gmail.com>
  • Loading branch information
jzding committed May 20, 2024
1 parent d3ce1fc commit d57823e
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 1,799 deletions.
1 change: 1 addition & 0 deletions routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import (
// 400: badReq
// 204: noContent
func (s *Server) createSubscription(w http.ResponseWriter, r *http.Request) {
log.Printf("DZK in V1 createSubscription")
defer r.Body.Close()
var response *http.Response
bodyBytes, err := io.ReadAll(r.Body)
Expand Down
1 change: 1 addition & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ func (s *Server) GetHostPath() *types.URI {

// Start will start res routes service
func (s *Server) Start() {
log.Infof("DZK starting V1 REST server at port %d", s.port)
if s.status == started || s.status == starting {
log.Infof("Server is already running at port %d", s.port)
return
Expand Down
Loading

0 comments on commit d57823e

Please sign in to comment.