Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify controller functions #204

Closed
jpahm opened this issue Feb 23, 2024 · 3 comments
Closed

Simplify controller functions #204

jpahm opened this issue Feb 23, 2024 · 3 comments
Assignees
Labels
L1 A task suitable for someone who is comfortable helping with basic issues.

Comments

@jpahm
Copy link
Contributor

jpahm commented Feb 23, 2024

Currently the controller functions are written in an over-complicated format, like so:

func CourseAll() gin.HandlerFunc {
	return func(c *gin.Context) {
		// Controller code here...
	}
}

This is over-complicated and cluttered, since the above code could be easily rewritten like so:

func CourseAll(c *gin.Context) {
	// Controller code here...
}

We should seek to simplify all of the controller code like shown -- code using the controllers will need to be adjusted accordingly.

@jpahm jpahm added the L1 A task suitable for someone who is comfortable helping with basic issues. label Feb 23, 2024
@jpahm jpahm assigned jpahm and tesla07 and unassigned jpahm Feb 26, 2024
@mikehquan19
Copy link
Contributor

Hi! I'm new to Go and Mongo. Can I get assigned to this task ?

@jpahm
Copy link
Contributor Author

jpahm commented Sep 16, 2024

Hi! I'm new to Go and Mongo. Can I get assigned to this task ?

Yes you can, it's all yours!

@jpahm
Copy link
Contributor Author

jpahm commented Oct 23, 2024

Closed via #219

@jpahm jpahm closed this as completed Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L1 A task suitable for someone who is comfortable helping with basic issues.
Projects
None yet
Development

No branches or pull requests

3 participants