2020-11-11 14:43:37 +00:00
|
|
|
<a
|
|
|
|
class="route-card"
|
|
|
|
onclick={{@onclick}}
|
|
|
|
id={{@item.ID}}
|
2020-12-11 09:38:33 +00:00
|
|
|
...attributes
|
2020-11-11 14:43:37 +00:00
|
|
|
>
|
|
|
|
<header class={{if (eq this.path.value '/') 'short'}}>
|
|
|
|
{{#if (gt @item.Definition.Match.HTTP.Methods.length 0) }}
|
2019-12-17 19:27:28 +00:00
|
|
|
<ul class="match-methods">
|
2020-11-11 14:43:37 +00:00
|
|
|
{{#each @item.Definition.Match.HTTP.Methods as |item|}}
|
2019-12-17 19:27:28 +00:00
|
|
|
<li>{{item}}</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
{{/if}}
|
|
|
|
<dl>
|
|
|
|
<dt>
|
2020-11-11 14:43:37 +00:00
|
|
|
{{this.path.type}}
|
2019-12-17 19:27:28 +00:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2020-11-11 14:43:37 +00:00
|
|
|
{{this.path.value}}
|
2019-12-17 19:27:28 +00:00
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</header>
|
2020-11-11 14:43:37 +00:00
|
|
|
{{#if (gt @item.Definition.Match.HTTP.Header.length 0) }}
|
2019-12-17 19:27:28 +00:00
|
|
|
<section class="match-headers">
|
2020-11-30 16:52:13 +00:00
|
|
|
<header {{tooltip 'Header'}}>
|
2019-12-17 19:27:28 +00:00
|
|
|
<h4>Headers</h4>
|
|
|
|
</header>
|
|
|
|
<dl>
|
2020-11-11 14:43:37 +00:00
|
|
|
{{#each @item.Definition.Match.HTTP.Header as |item|}}
|
2019-12-17 19:27:28 +00:00
|
|
|
<dt>
|
|
|
|
{{item.Name}}
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
{{route-match item}}
|
|
|
|
</dd>
|
|
|
|
{{/each}}
|
|
|
|
</dl>
|
|
|
|
</section>
|
|
|
|
{{/if}}
|
2020-11-11 14:43:37 +00:00
|
|
|
{{#if (gt @item.Definition.Match.HTTP.QueryParam.length 0) }}
|
2019-12-17 19:27:28 +00:00
|
|
|
<section class="match-queryparams">
|
2020-11-30 16:52:13 +00:00
|
|
|
<header {{tooltip 'Query Params'}}>
|
2019-12-17 19:27:28 +00:00
|
|
|
<h4>Query Params</h4>
|
|
|
|
</header>
|
|
|
|
<dl>
|
2020-11-11 14:43:37 +00:00
|
|
|
{{#each @item.Definition.Match.HTTP.QueryParam as |item|}}
|
2019-12-17 19:27:28 +00:00
|
|
|
<dt>
|
|
|
|
{{item.Name}}
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
{{route-match item}}
|
|
|
|
</dd>
|
|
|
|
{{/each}}
|
|
|
|
</dl>
|
|
|
|
</section>
|
|
|
|
{{/if}}
|
|
|
|
</a>
|