Skip to content

Commit

Permalink
userProposalStore
Browse files Browse the repository at this point in the history
  • Loading branch information
PavlosIsaris committed Dec 11, 2024
1 parent bebe83d commit e40babc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Solution/SolutionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function store(Request $request): RedirectResponse {
return redirect($route);
}

public function storeSolutionFromPublicForm(Request $request): RedirectResponse {
public function userProposalStore(Request $request): RedirectResponse {
$this->validate($request, [
'solution-title' => ['required', 'string', 'max:100'],
'solution-description' => ['required', 'string', 'max:400'],
Expand Down
4 changes: 0 additions & 4 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,3 @@
Route::get('/{project_slug}/problems/{problem_slug}', [ProblemController::class, 'show'])->name('problem.show');
Route::get('/{project_slug}/problems/{problem_slug}/solutions/', [ProblemController::class, 'show'])->name('problem.show.solutions');
});

Route::group(['middleware' => 'auth'], function () {
Route::post('/solutions', [SolutionController::class, 'storeSolutionFromPublicForm'])->name('solutions.store.public');
});

0 comments on commit e40babc

Please sign in to comment.