Skip to content

Commit

Permalink
SKY API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
battis committed Nov 23, 2022
1 parent 0b65353 commit 4b11794
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/sky-api.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

/* pass-through to SKY API for front-end client */

use DI\Container;
use GrotonSchool\AssignmentsViewer\Users\User;
use GrotonSchool\AssignmentsViewer\Users\UserFactory;
Expand All @@ -20,7 +22,7 @@

$request = $sky->getAuthenticatedRequest(
$_REQUEST['method'] ?: 'GET',
preg_replace('/:user_id/', $user->getUserId(), $_REQUEST['url']),
preg_replace('/:user_id/', $user->getUserId(), $_REQUEST['url']), // TODO match other API parameters?
$sky->getAccessToken(),
$_REQUEST['options'] ?: []
);
Expand Down

0 comments on commit 4b11794

Please sign in to comment.