From 8f87ee1c4e8ed712923c87de64d71256bf653d3b Mon Sep 17 00:00:00 2001 From: max Date: Fri, 4 Nov 2022 15:12:57 -0500 Subject: [PATCH] Fix and add comments --- routes/postRoutes.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/postRoutes.go b/routes/postRoutes.go index b082b47..58ab50e 100644 --- a/routes/postRoutes.go +++ b/routes/postRoutes.go @@ -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) }