API - Appeltabak/postduif GitHub Wiki

Routes

These are the routes registered in the flask API:

  • /api/register
  • POST, register new user with: username, password, email, location
  • /api/login
  • GET, show the login form
  • POST, login the user with: username, password
  • /api//flights
  • GET, get the flights from a user with: user.id
  • POST, register new flight with: duif_id, start_time, msg, receiver_id, sender_id, sealed
⚠️ **GitHub.com Fallback** ⚠️