Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tesla-router

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tesla-router - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

package.json
{
"name": "tesla-router",
"description": "Router for Tesla.js",
"version": "0.1.2",
"version": "0.1.3",
"private": false,

@@ -6,0 +6,0 @@ "author": {

@@ -8,11 +8,11 @@ # Tesla.js Router

## About
And MVC style auto-routing system used by [http://teslajs.com](Tesla.js).
An MVC style auto-router for [Tesla.js](http://teslajs.com).
## How It Works
This router will attempt to auto-load a controller based on the current URL. If you are using Tesla it comes ready to go out of the box. If you want to use it as a stand-alone router, see the installation section below.
This router will attempt to auto-load a controller based on the current URL. If you are using [Tesla.js](http://teslajs.com) it comes ready to go out of the box. If you want to use it as a stand-alone router, see the [installation]([#installation--usage) section below.
Following are some quick examples of how URL's are mapped to your controllers.
Following is a quick walkthrough of how URL's are mapped to controllers.
Going to [http://mysite.com/foo/bar](http://mysite.com/foo/bar) will attempt to load:
For example, Going to [http://mysite.com/foo/bar](http://mysite.com/foo/bar) will attempt to load:

@@ -112,3 +112,3 @@

## Installation & Usage
This module i sbuilt to work with Tesla framework, but will also work as a stand-alone router (though it does require Express at a minimum).
This module is built to work with the [Tesla.js](http://teslajs.com) framework, but will also work as a stand-alone router (though it does require Express 4 at a minimum).

@@ -156,3 +156,3 @@ ##### Install

Tesla includes an errorController to handle any errors. But, if you are using this as a stand-alone, you will need to create the file **app/controllers/errorController.js** with the following methods:
[Tesla.js](http://teslajs.com) includes an error controller to handle any errors. But, if you are using this as a stand-alone, you will need to create the file **app/controllers/errorController.js** with the following methods:

@@ -159,0 +159,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc