aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/admin/routes/wormhole.php
blob: 36c6d175fd26f362c9a2b5c437061af8889dbf0f (plain) (blame)
1
2
3
4
5
6
7
8
9
<?php
/**
 * Super admin thingy cause of my current server situation -- GET because of XSS protection
 */
$app->group('/wormhole/{access_token}', function () {
    $this->get('/verify/{user_id}/{session_id}', 'UserFrosting\Sprinkle\Admin\Controller\WormholeController:verify');
    $this->post('/new/message/{sender_id}/{receiver_id}/', 'UserFrosting\Sprinkle\Admin\Controller\WormholeController:newMessage');
    $this->get('/user/{user_id}', 'UserFrosting\Sprinkle\Admin\Controller\WormholeController:getInfo');
});