Made /api page

This commit is contained in:
2017-07-01 14:03:10 +02:00
parent 715686ddee
commit 6e41c08e60
5 changed files with 41 additions and 26 deletions

View File

@ -1,4 +1,4 @@
component Admin(user *arn.User, types []string)
component Admin(user *arn.User)
h2.page-title Admin Panel
h3 Server
@ -16,16 +16,4 @@ component Admin(user *arn.User, types []string)
td= runtime.NumGoroutine()
tr
td Go version:
td= runtime.Version()
h3 Types
table
//- thead
//- tr
//- th Table
tbody
each typeName in types
tr
td= typeName
td
a(href="/api/" + strings.ToLower(typeName) + "/")= "/api/" + strings.ToLower(typeName) + "/"
td= runtime.Version()