zlorgoncho1 / sprint

A lightweight, high-performance Go web framework focusing on simplicity, with built-in support for JSON & HTML responses. Perfect for building efficient, scalable server-side applications. Currently in active development. Contributions welcome!
MIT License
13 stars 5 forks source link

Fix: Bug make the boke into params #20

Open Bakarseck opened 2 weeks ago

Bakarseck commented 2 weeks ago
zlorgoncho1 commented 2 weeks ago

Hello @Bakarseck,

Could you please clarify the main purposes of the jsonDB.go file? Regarding the middleware and CORS, could you use more explicit names? For the middleware, instead of using a Use method as suggested by the framework, wouldn't it be more appropriate to add them directly to the modules? A global middleware could be placed in the main module during implementation. From a code architecture perspective, it might also be worth considering adding a middleware file and implementing the structure there. Could you also explain why you changed the params type to map[string]interface{}?