Skip to content

Instantly share code, notes, and snippets.

@bnvk
Forked from barnabywalters/notes.web
Created August 8, 2013 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnvk/6188935 to your computer and use it in GitHub Desktop.
Save bnvk/6188935 to your computer and use it in GitHub Desktop.
on GET /notes
fetch the 20 most recent notes filtered by tag
show as h-feed
on GET /notes/new
the user must be an admin
show autofilled note-form
on GET /notes/{id}
fetch note
show as h-entry
on POST /notes
the user must be an admin
make note from the request
do pre-note tasks (autolinking, etc)
save note
do post-note tasks (webmention, POSSE and such)
save note (just in case post-note tasks altered it)
redirect to note as 303 (See Other)
on PUT /notes/{id}
user must be an admin
fetch note
update note from request
do post-note-edit tasks
save note
on pre-note tasks
convert markdown
autolink URLs
autolink contact names
on post-note tasks
send webmentions
POSSE to twitter
on post-note-edit tasks
send webmentions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment