mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Created shortcode creation rest endpoint
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
use Acelaya\UrlShortener\Middleware\Routable;
|
||||
use Acelaya\UrlShortener\Middleware\Rest;
|
||||
|
||||
return [
|
||||
|
||||
@@ -10,6 +11,14 @@ return [
|
||||
'middleware' => Routable\RedirectMiddleware::class,
|
||||
'allowed_methods' => ['GET'],
|
||||
],
|
||||
|
||||
// Rest
|
||||
[
|
||||
'name' => 'rest-create-shortcode',
|
||||
'path' => '/rest/short-code',
|
||||
'middleware' => Rest\CreateShortcodeMiddleware::class,
|
||||
'allowed_methods' => ['POST'],
|
||||
],
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user