fix: harden UCE runtime and starter
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
COMPONENT(Request& context)
|
||||
{
|
||||
starter_boot(context);
|
||||
|
||||
<>
|
||||
<div id="cookie-consent" style="
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
#load "../../lib/app.uce"
|
||||
|
||||
COMPONENT(Request& context)
|
||||
{
|
||||
String message = first(context.props["message"].to_string(), "The requested page does not exist.");
|
||||
context.set_status(404, "Not Found");
|
||||
context.call["app"]["page_title"] = "404 Not Found";
|
||||
<>
|
||||
<section class="card">
|
||||
<h1>404 Not Found</h1>
|
||||
<p><?= message ?></p>
|
||||
<p>The starter router looked for the route as an exact view, a directory index, and then parent index handlers.</p>
|
||||
</section>
|
||||
</>
|
||||
}
|
||||
Reference in New Issue
Block a user