Skip to content

Commit 3b2ac78

Browse files
committed
Update Meta.xml add router & restricted attributes
1 parent 6a55e4d commit 3b2ac78

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

web/src/pages/reference/Meta.xml.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { Code } from '@astrojs/starlight/components';
33
import AutoStarlightPage from '@src/components/AutoStarlightPage.astro';
44
import NoteBox from '@src/components/NoteBox.astro';
5+
import VersionBox from '@src/components/VersionBox.astro';
56
---
67

78
<AutoStarlightPage frontmatter={{
@@ -70,6 +71,9 @@ It is also the scope of "elements". It is written in XML, which is based on HTML
7071
<li><strong>type:</strong> Whether function is exported server-side or client-side (valid values are: "client", "server" and "shared").</li>
7172
<NoteBox type='info'>A shared export will make the function callable from both client and server scripts (basically adds the export twice: once for server and once for client).</NoteBox>
7273
<li><strong>http:</strong> Can the function be called via HTTP (true/false).</li>
74+
<li><VersionBox added="1.6.0 r226390"><strong>router:</strong> Specifies whether the function is used as a router. It only works when the <code>http</code> attribute is set to <strong>true</strong>.</VersionBox></li>
75+
<NoteBox type='info'>You can have only one router function.</NoteBox>
76+
<li><strong>restricted</strong> Defines the default access policy for an exported function when the ACL does not contain any rules for that function. If set to <strong>false</strong>, the function will still be callable even if it is not explicitly defined in the ACL as <code>function.exportedFunctionName</code> with an access value of <strong>true</strong> or <strong>false</strong>.</li>
7377
</ul>
7478

7579
<li><strong>&lt;html/&gt;</strong></li>

0 commit comments

Comments
 (0)