simplex/applications/docs.moon

21 lines
564 B
Plaintext
Raw Permalink Normal View History

2018-04-25 03:55:12 +00:00
import Application from require "lapis"
class Docs extends Application
@path: "/docs"
@name: "docs_"
[index: ""]: =>
2018-05-01 22:41:08 +00:00
@title = "Simplex API Docs"
2018-04-25 03:55:12 +00:00
@html ->
2018-05-01 22:41:08 +00:00
h2 "Select API Version"
ol ->
li ->
a href: @url_for("docs_v1"), "API v1"
text " (current, supported indefinitely*)"
p "* APIs are supported indefinitely unless an incompatible change is planned, in which case they will be available for 6 months before being retired."
2018-04-25 03:55:12 +00:00
[v1: "/v1"]: =>
2018-04-25 05:02:41 +00:00
@title = "Simplex API v1"
return render: "docs.v1"