Better naming of functions and files, delete less than helpful comments
This commit is contained in:
@ -8,10 +8,10 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// GetRoutes defines all project get routes
|
||||
func GetRoutes(app *app.App) {
|
||||
// Get defines all project get routes
|
||||
func Get(app *app.App) {
|
||||
// Get controller struct initialize
|
||||
getController := controllers.GetController{
|
||||
getController := controllers.Get{
|
||||
App: app,
|
||||
}
|
||||
|
@ -7,10 +7,10 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// PostRoutes defines all project post routes
|
||||
func PostRoutes(app *app.App) {
|
||||
// Post defines all project post routes
|
||||
func Post(app *app.App) {
|
||||
// Post controller struct initialize
|
||||
postController := controllers.PostController{
|
||||
postController := controllers.Post{
|
||||
App: app,
|
||||
}
|
||||
|
Reference in New Issue
Block a user