clinical:router-url

v2.1.0Published 6 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Clinical Router Url

================== Url utilities and support for compiling a url into a regular expression.

Circle CI

===============================

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", {});

===============================

Licensing

MIT License