augustin-wien / augustina-backend

An open-source web shop designed for selling magazines on the street.
GNU Affero General Public License v3.0
4 stars 0 forks source link

Add Static file server + settings and vendor api call #8

Closed lebe1 closed 1 year ago

lebe1 commented 1 year ago

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 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:

lebe1 commented 1 year ago

Check new PR description