Fix and add comments

This commit is contained in:
max 2022-11-04 15:12:57 -05:00
parent 2a95868d5f
commit 8f87ee1c4e

View File

@ -6,12 +6,14 @@ import (
"net/http"
)
// PostRoutes defines all project post routes
func PostRoutes(app *app.App) {
// Get controller struct initialize
// Post controller struct initialize
postController := controllers.PostController{
App: app,
}
// User authentication
http.HandleFunc("/register-handle", postController.Register)
http.HandleFunc("/login-handle", postController.Login)
}