From 94171ab6a9da918f8b3fac422bf24f5163315cc8 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 7 Jul 2018 23:37:12 +0200 Subject: [PATCH] remove debug + change 'custom-types' folder for custom types to 'types' --- cmd/aicra/main.go | 2 +- server.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/aicra/main.go b/cmd/aicra/main.go index 6855455..2eb2f53 100644 --- a/cmd/aicra/main.go +++ b/cmd/aicra/main.go @@ -16,7 +16,7 @@ func main() { ctlPathFlag := flag.String("c", "root", "Path to controllers' directory") /* (2) types path */ - typPathFlag := flag.String("t", "custom-types", "Path to custom types' directory") + typPathFlag := flag.String("t", "types", "Path to custom types' directory") /* (3) middleware path */ midPathFlag := flag.String("m", "middleware", "Path to middlewares' directory") diff --git a/server.go b/server.go index a2b57e6..9c0d5cc 100644 --- a/server.go +++ b/server.go @@ -73,7 +73,6 @@ func (s *Server) routeRequest(res http.ResponseWriter, httpReq *http.Request) { /* (2) Middleware: authentication */ scope := s.Middleware.Run(*httpReq) - fmt.Printf("scope is %v\n", scope) /* (3) Find a matching controller */ controller := s.findController(req)