Kyoso-Team / kyoso

A web application that takes osu! tournaments beyonds spreadsheets.
http://kyoso.sh
GNU Affero General Public License v3.0
1 stars 1 forks source link

Make API route to upload a tournament's logo #25

Closed L-Mario564 closed 3 months ago

L-Mario564 commented 4 months ago

Why?

Some tournaments have logos and corresponding staff members should have the ability to do set or remove it. There is already a field for this in the database schema.

How?

Would be almost the same implementation for uploading tournament banners, just changing some values that are specific to the tournament's logo instead of banner. To see the implementation of getting, uploading and deleting a tournament's banner, check src/routes/api/assets/tournament_banner/+server.ts.