Clinical Router Url
================== Url utilities and support for compiling a url into a regular expression.
===============================
Installation
This package is a dependency of clinical:router
. Just install the router package, and you'll get this included.
meteor add clinical:router
===============================
Route Prefixes
You can add a route prefix by specifying a suffix in the ROOT_URL
, like so:
ROOT_URL="http://localhost:3000/admin" meteor
All subsequent routes will be available on the /admin
prefix.
===============================
Generating URL Paths
1//http://mydomain.com 2Meteor.absoluteUrl.defaultOptions.rootUrl = "http://mydomain.com" 3 4//http://mydomain.com/foo 5Meteor.absoluteUrl("/foo", {});
===============================