all repos — litestore @ 62b7d01b1c14644d771cab35732f9f99ea83e50b

A minimalist nosql document store.

app/js/app.js

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
(function(){
  'use strict';
  var app = window.LS || (window.LS = {});
  
  app.flash = m.prop();

  m.route.mode = "hash";

  m.route(document.body, "/info", {
    '/info': app.info,
    "/tags/:id": app.tags,
    "/document/:action/:id...": app.document,
    "/guide/:id": app.guide,
    "/new": app.create
  });
}());