PatrickGTR / gta-open-web

A fullstack web application for GTA Open, consist of blog & user control panel written in Next JS, Go and MariaDB
https://gta-open.ga/
Apache License 2.0
13 stars 0 forks source link

Media section [backend] #5

Open PatrickGTR opened 3 years ago

PatrickGTR commented 3 years ago

Endpoints

GET /media/ -> Grabs all posted content from the database. GET /media/{id} -> Grabs a post base on the given ID.

POST /media/{id} -> Post a comment POST /media -> Insert a new data to our database, CONTAINS

DELETE /media/{id} -> Delete a post depending on ID given. PUT /media/{id} -> Update content post, maybe new description or title?

PatrickGTR commented 3 years ago

b958c98d7275ff21bb392ac9104e701e499bde0a

Updated,

TODO:

DELETE media and PUT media