Fix and add comments
This commit is contained in:
		@@ -6,12 +6,14 @@ import (
 | 
				
			|||||||
	"net/http"
 | 
						"net/http"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// PostRoutes defines all project post routes
 | 
				
			||||||
func PostRoutes(app *app.App) {
 | 
					func PostRoutes(app *app.App) {
 | 
				
			||||||
	// Get controller struct initialize
 | 
						// Post controller struct initialize
 | 
				
			||||||
	postController := controllers.PostController{
 | 
						postController := controllers.PostController{
 | 
				
			||||||
		App: app,
 | 
							App: app,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// User authentication
 | 
				
			||||||
	http.HandleFunc("/register-handle", postController.Register)
 | 
						http.HandleFunc("/register-handle", postController.Register)
 | 
				
			||||||
	http.HandleFunc("/login-handle", postController.Login)
 | 
						http.HandleFunc("/login-handle", postController.Login)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user