Fix /notes/new page so it is not a 404
This commit is contained in:
parent
8817ff1719
commit
5e5f74f4ed
3 changed files with 20 additions and 0 deletions
|
@ -83,4 +83,16 @@ class NotesController extends Controller
|
|||
|
||||
return view('notes.tagged', compact('notes', 'tag'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Page to create a new note.
|
||||
*
|
||||
* Dummy page for now.
|
||||
*
|
||||
* @return View
|
||||
*/
|
||||
public function create(): View
|
||||
{
|
||||
return view('notes.create');
|
||||
}
|
||||
}
|
||||
|
|
7
resources/views/notes/create.blade.php
Normal file
7
resources/views/notes/create.blade.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')New Note « @stop
|
||||
|
||||
@section('content')
|
||||
<p>This was a page where I could create new notes. maybe it will be again one day…</p>
|
||||
@stop
|
|
@ -142,6 +142,7 @@ Route::group(['domain' => config('url.longurl')], function () {
|
|||
Route::get('/feed.atom', [FeedsController::class, 'notesAtom']);
|
||||
Route::get('/feed.json', [FeedsController::class, 'notesJson']);
|
||||
Route::get('/feed.jf2', [FeedsController::class, 'notesJf2']);
|
||||
Route::get('/new', [NotesController::class, 'create']);
|
||||
Route::get('/{id}', [NotesController::class, 'show']);
|
||||
Route::get('/tagged/{tag}', [NotesController::class, 'tagged']);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue