]>
BookStack Code Mirror - hacks/blob - content/simple-page-rss-feed/functions.php
projects
/
hacks
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added OIDC Azure avatar image hack
[hacks]
/
content
/
simple-page-rss-feed
/
functions.php
1
<?php
2
3
use BookStack\Entities\Models\Page;
4
use Illuminate\Support\Facades\Route;
5
6
Route::get('/rss/pages/new', function() {
7
$pages = Page::query()
8
->visible()
9
->orderBy('created_at', 'desc')
10
->take(25)
11
->get();
12
13
return response()->view('rss', ['pages' => $pages], 200, ['Content-Type' => 'text/xml']);
14
});