simplex/applications/docs.moon
2018-05-01 15:41:08 -07:00

21 lines
564 B
Plaintext

import Application from require "lapis"
class Docs extends Application
@path: "/docs"
@name: "docs_"
[index: ""]: =>
@title = "Simplex API Docs"
@html ->
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."
[v1: "/v1"]: =>
@title = "Simplex API v1"
return render: "docs.v1"