Show basic details about an IXP

parent 619cf3dd
......@@ -17,6 +17,8 @@ router.get("/:ix_id", (req: Request, res: Response, next: NextFunction) => {
id: ixId,
data,
// dataRaw: JSON.stringify(data, null, 2),
})
})
.catch(err => {
......
......@@ -2,4 +2,16 @@
{% block body %}
<h1>{{ data.name }}</h1>
<ul>
<li>Operator: <a href="https://peeringdb.com/org/{{ data.org.id }}">{{ data.org.name }}</a></li>
<li>Website: <a href="{{ data.website }}">{{ data.website }}</a></li>
<li>Statistics: <a href="{{ data.url_stats }}">{{ data.url_stats }}</a></li>
<li>Country: {{ data.country }}</li>
<li>Continent: {{ data.region_continent }}</li>
</ul>
{# <pre><code>{{ dataRaw }}</code></pre> #}
{% endblock %}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment