Skip to content

Jontyy/route.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Route.js

needs docs :)

//simple route
route('/dashboard/',function(){});

//arguments
route('/blog/post/:id',function(id){

});

//optional arguments
route('/blog/posts(/:filter)',function(filter){

});

//int argument
route('/product/:int',function(id){});

//a-z argument
route('/user/:az',function(username){});

//alphanumeric type
route('/user/:alnum',function(username){});

route(function(){
   // the default route if nothing else matched
});

route(location.pathname); //any string will start off routing

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published