Skip to content

Commit 368ca22

Browse files
committed
update README.md
1 parent 03dd8ed commit 368ca22

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

README.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -114,21 +114,14 @@ Route::middleware(['before' => 'no-auth'], function() {
114114
});
115115
});
116116

117-
Route::middleware(['before' => 'auth'], function() {
118-
Route::prefix('dashboard', function() {
119-
Route::get('home', function() {
120-
return [
121-
'status' => "success",
122-
'message' => "GET success."
123-
];
124-
});
117+
// or
125118

126-
Route::post('home', function() {
127-
return [
128-
'status' => "success",
129-
'message' => "POST success."
130-
];
131-
});
119+
Route::middleware(['before' => 'no-auth', 'prefix' => 'authenticate'], function() {
120+
Route::post('login', function() {
121+
return [
122+
'status' => "success",
123+
'message' => "Hello world."
124+
];
132125
});
133126
});
134127
```

0 commit comments

Comments
 (0)