UTDNebula / nebula-api

The central API for Nebula Labs. Makes UTD data easily available through endpoints for both internal and public usage.
MIT License
26 stars 32 forks source link

Simplify controller functions #204

Open jpahm opened 7 months ago

jpahm commented 7 months ago

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.

mikehquan19 commented 2 weeks ago

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

jpahm commented 2 weeks ago

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

Yes you can, it's all yours!