Skip to content

Commit

Permalink
Tiding up
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdordoy committed Oct 10, 2024
1 parent dc7f981 commit d551952
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ jobs:

- name: Fix PHP code style issues
uses: aglipanci/[email protected]
with:
preset: laravel
verboseMode: true
testMode: true
configPath: "pint.json"
pintVersion: 1.8.0
onlyDirty: true

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
Expand Down
3 changes: 3 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"preset": "laravel"
}
22 changes: 22 additions & 0 deletions src/Actions/RegisterRoutes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace JamesDordoy\HTMLable\Actions;

use Illuminate\Support\Facades\Route;
use JamesDordoy\HTMLable\Http\Controllers\Documents\DocumentsController;
use JamesDordoy\HTMLable\Http\Controllers\Documents\ParseDocumentController;
use JamesDordoy\HTMLable\Http\Controllers\Elements\ElementsController;
use JamesDordoy\HTMLable\Http\Controllers\Elements\ParseElementController;
use JamesDordoy\HTMLable\Http\Controllers\ValuesController;

class RegisterRoutes
{
public function __invoke() {

Route::resource('/htmlable/documents', DocumentsController::class);
Route::get('/htmlable/documents/{document}/render', ParseDocumentController::class);
Route::resource('/htmlable/elements', ElementsController::class);
Route::get('/htmlable/elements/{element}/render', ParseElementController::class);
Route::resource('/htmlable/values', ValuesController::class);
}
}

0 comments on commit d551952

Please sign in to comment.