remove debug + change 'custom-types' folder for custom types to 'types'

This commit is contained in:
Adrien Marquès 2018-07-07 23:37:12 +02:00
parent bb8cf07ab6
commit 94171ab6a9
2 changed files with 1 additions and 2 deletions

View File

@ -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")

View File

@ -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)