dingoblog / dingo

Blog engine written in Go
MIT License
284 stars 34 forks source link

split api handlers out into separate files #59

Closed samdfonseca closed 8 years ago

samdfonseca commented 8 years ago

Moved a few things around so we're not dealing with one huge file with all the api handlers

dinever commented 8 years ago

@samdfonseca

This looks good. However, we may need to split other handlers in admin.go and home.go if we go through this way. What do we think about restructuring the whole handler package into 3 packages handler/admin, handler/home(we can come up with a better name for this) and handler/api?

Would love to hear your thoughts.

samdfonseca commented 8 years ago

i think thats a great idea. that should help clear up some of the confusion over whats being used for the api handlers vs the template rendering handlers

samdfonseca commented 8 years ago

working on fixing the broken tests now

samdfonseca commented 8 years ago

@dinever im gonna merge this in unless theres any objections

dinever commented 8 years ago

@samdfonseca

Sure, free feel to merge this if it is finished, and thanks for the contribution! 👍