diff --git a/src/views.controller.ts b/src/views.controller.ts index 8105a31..1e6a0cb 100644 --- a/src/views.controller.ts +++ b/src/views.controller.ts @@ -9,6 +9,10 @@ export class ViewsController { @Get() @Render('index.html') index() { - return { keys: this.allKeysProvider.getAll().map((x) => x.url) } + return { + keys: this.allKeysProvider.getAll() + .map(x => x.url) + .map(x => ({ url: x, domain: x.replace(/^\S+:\/\//, '') })) + } } } diff --git a/views/index.html b/views/index.html index 31f3e93..1f0b9f7 100644 --- a/views/index.html +++ b/views/index.html @@ -10,18 +10,23 @@

this is a GPG keyserver that serves keys from all the following servers combined:

-