lucydavinhart / api.lmhd.me

The shiny new LMHD API
1 stars 0 forks source link

Refactor: Response Formats #8

Open lucymhdavies opened 3 years ago

lucymhdavies commented 3 years ago

Per TODO comment...

    // TODO: got to the point where this is in every function now, huh.
    // We should make an APIResponse interface, return that instead, and have
    // the Handler function in main.go deal with all this

https://github.com/lucydavinhart/api.lmhd.me/blob/main/v1/front_federate.go#L63-L93