Skip to content

MAM-MERN/MAM-Server

Repository files navigation

MAM-Server

Routes

Authorisation


POST '/auth/login'

  • Login for Admin
  • requires fields 'username' and 'password'

GET '/auth/logout'

  • Logout for Admin

Artwork


GET '/artwork'

  • Retrieve all artworks in the database

POST '/artworks/new'

  • Create a new artwork in database and image on amazon S3

** input name must be 'image' for file upload ie. <input name="image" type="file" /> **

GET '/artworks/:search'

  • Retrieves all artworks containing a given search term
  • Searches using the name field

DELETE '/:id'

  • Delete a single artwork by ID both from the database and its image on amazon S3

About

Melbourne Art Map - Express Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •