simplex/applications/docs.moon
2018-04-24 20:55:12 -07:00

27 lines
807 B
Plaintext

import Application from require "lapis"
class Docs extends Application
@path: "/docs"
@name: "docs_"
[index: ""]: =>
@html ->
h3 "Hi there."
a href: @url_for("docs_v1"), "click here"
[v1: "/v1"]: =>
@html ->
p "ToDo. Write this."
-- /new { content: "string" }
-- /get { id: # } or content
-- /do { id: # } or content
-- /undo { id: # } or content
-- /delete { id: # } or content
-- /random { count: #, done: bool } (both args optional, defaults count 1, done false)
-- /list { count: #, done: bool, page: #, order: asc/desc } (if done not specified, returns all,
-- default count is 50, default page is 1, default order is latest first
-- /key/new
-- /key/delete { id: #, key: "str" }