copypaste2/config/routes.yaml

21 lines
584 B
YAML
Raw Normal View History

paste_show_public:
path: /{id}
defaults: { _controller: 'App\Controller\PasteController::showAction', secret: null }
requirements:
id: \d+
paste_show_private:
path: /{id}/{secret}
defaults: { _controller: 'App\Controller\PasteController::showAction' }
requirements:
id: \d+
secret: \w{16}
paste_new:
path: /
defaults: { _controller: 'App\Controller\PasteController::newAction' }
paste_create:
path: /create
defaults: { _controller: 'App\Controller\PasteController::createAction' }
methods: POST