remove debug + change 'custom-types' folder for custom types to 'types'
This commit is contained in:
parent
bb8cf07ab6
commit
94171ab6a9
|
@ -16,7 +16,7 @@ func main() {
|
||||||
ctlPathFlag := flag.String("c", "root", "Path to controllers' directory")
|
ctlPathFlag := flag.String("c", "root", "Path to controllers' directory")
|
||||||
|
|
||||||
/* (2) types path */
|
/* (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 */
|
/* (3) middleware path */
|
||||||
midPathFlag := flag.String("m", "middleware", "Path to middlewares' directory")
|
midPathFlag := flag.String("m", "middleware", "Path to middlewares' directory")
|
||||||
|
|
|
@ -73,7 +73,6 @@ func (s *Server) routeRequest(res http.ResponseWriter, httpReq *http.Request) {
|
||||||
|
|
||||||
/* (2) Middleware: authentication */
|
/* (2) Middleware: authentication */
|
||||||
scope := s.Middleware.Run(*httpReq)
|
scope := s.Middleware.Run(*httpReq)
|
||||||
fmt.Printf("scope is %v\n", scope)
|
|
||||||
|
|
||||||
/* (3) Find a matching controller */
|
/* (3) Find a matching controller */
|
||||||
controller := s.findController(req)
|
controller := s.findController(req)
|
||||||
|
|
Loading…
Reference in New Issue