[x] New feature (non-breaking change which adds functionality)
Description
This PR adds a static file server to load images.
It also includes two more API calls reachable via localhost:3000/settings and localhost:3000/vendor.
I added two images of the Augustin logo, where frontend developers will decide which one to choose.
In a different PR I will add a documentation about each API call.
I added two tests to main_test.go and unsure about renaming and moving the file to handlers_test.go.
Both of my tests for Settings and Vendors handler work since they are not dependent from the database. They look differently on purpose.
Also I fixed the last CI error by using log.Errorf() instead of log.Error().
Checklist:
[x] I have commented my code (or ChatGPT did), particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings, neither in my IDE nor in my browser
[x] I have added tests that prove my fix is effective or that my feature works
Type of change
Description
This PR adds a static file server to load images. It also includes two more API calls reachable via
localhost:3000/settings
andlocalhost:3000/vendor
. I added two images of the Augustin logo, where frontend developers will decide which one to choose. In a different PR I will add a documentation about each API call. I added two tests tomain_test.go
and unsure about renaming and moving the file tohandlers_test.go
. Both of my tests forSettings
andVendors
handler work since they are not dependent from the database. They look differently on purpose. Also I fixed the last CI error by usinglog.Errorf()
instead oflog.Error()
.Checklist: