git clone https://github.com/Folium1/testTask.git
1.Copy the key of your mysql db source to MYSQL_SOURCE local variable
2.Start mysql server.
3.Run go run main.go
Requests:
- (POST) /login: A mock user is created with the following JSON payload: {"username": "test", "password": 123456}.
- (GET) /logs: returns a list of all logs
- (POST) /upload-picture: Upload a picture in the form with the key "image". Include the token received from the login request in the header.
- (GET) /images: Include the token received from the login request in the header.