Plugin Directory

Changeset 2027821


Ignore:
Timestamp:
02/09/2019 04:19:24 PM (7 years ago)
Author:
collimarco
Message:

Add prefix api/v1 to all API endpoints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pushpad-web-push-notifications/trunk/pushpad/notification.php

    r1441637 r2027821  
    3131    $project_id = isset($options['project_id']) ? $options['project_id'] : Pushpad::$project_id;
    3232    if (!isset($project_id)) throw new \Exception('You must set Pushpad\Pushpad::$project_id');
    33     $endpoint = "https://pushpad.xyz/projects/$project_id/notifications";
     33    $endpoint = "https://pushpad.xyz/api/v1/projects/$project_id/notifications";
    3434    $req = curl_init($endpoint);
    3535    curl_setopt($req, CURLOPT_CUSTOMREQUEST, 'POST');
Note: See TracChangeset for help on using the changeset viewer.