ttpos / url

A simple and efficient URL shortener
https://t.a.app/
0 stars 0 forks source link

Add API Endpoint for Batch Updating URL Records and Route Handler for Short Code-Based GET Requests #13

Closed cd996 closed 2 months ago

cd996 commented 2 months ago
  1. API Endpoint for Batch Updating URL Records:

    • Implemented a new API endpoint that allows for batch updating of multiple attributes of URL short links, including URL addresses, user IDs, expiration times, and custom properties.
    • The endpoint processes an array of records, performs update operations for each record, and returns a list of successful and failed updates.
  2. Route Handler for Short Code-Based GET Requests:

    • Added a route handler that processes GET requests with short codes.
    • Extracts short code parameters from the event context and redirects the request to the URL associated with the short code.
    • Returns appropriate error responses if the short code is not found or if any issues occur during request processing.

fix: #12