Git Product home page Git Product logo

routing_tree's Introduction

NovaFramework

PHP Based Framework

routing_tree's People

Contributors

burbas avatar buurbas avatar taure avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

routing_tree's Issues

Solve compile warnings

===> Analyzing applications...
/home/daniel/project/nova_project/routing_tree/src/routing_tree_parser.yrl: Warning: conflicts: 2 shift/reduce, 0 reduce/reduce
/home/daniel/project/nova_project/routing_tree/src/routing_tree_parser.yrl:none: Warning: conflicts: 2 shift/reduce, 0 reduce/reduce

===> Compiling routing_tree
src/routing_tree.erl:286:1: Warning: this clause cannot match because a previous clause at line 282 always matches
src/routing_tree.erl:290:1: Warning: function first/2 is unused

Today when we compile we get warnings.

Routing tree is inserted wrong with secure websocket

Host: '_'
     ├─  /apanws
         └─  _ /ws (nova_request_app, nova_ws_handler:init/1)
     ├─  /secure
         └─  GET /secure (nova_request_app, nova_request_app_main_controller:secure/1)
     ├─  GET /json_binding (nova_request_app, nova_request_app_main_controller:all/1)
         └─  GET /json (nova_request_app, nova_request_app_main_controller:json_get_binding/1)
     ├─  /ws
         └─  _ /ws (nova_request_app, nova_ws_handler:init/1)
     ├─  GET /json_get (nova_request_app, nova_request_app_main_controller:json_get/1)
     ├─  POST /json_post (nova_request_app, nova_request_app_main_controller:json_post/1)
     ├─  POST /post_params (nova_request_app, nova_request_app_main_controller:post_params/1)
     └─  GET /get_qs (nova_request_app, nova_request_app_main_controller:get_qs/1)

Routing file:

#{prefix => "",
  security => false,
  routes => [
            {"/get_qs", { nova_request_app_main_controller, get_qs}, #{methods => [get]}},
            {"/post_params", { nova_request_app_main_controller, post_params}, #{methods => [post]}},
            {"/json_post", { nova_request_app_main_controller, json_post}, #{methods => [post]}},
            {"/json_get", { nova_request_app_main_controller, json_get}, #{methods => [get]}},
            {"/ws/:ws", nova_request_ws, #{protocol => ws}}
           ]
}.

#{prefix => "/json_binding",
  security => false,
  routes => [{"/", {nova_request_app_main_controller, all}, #{methods => [get]}},
             {"/:json", { nova_request_app_main_controller, json_get_binding}, #{methods => [get]}}
            ]
  }.

#{prefix => "/secure",
  security => {nova_request_auth, auth},
  routes => [{"/:secure", {nova_request_app_main_controller, secure}, #{methods => [get]}},
             {"/apanws/:ws", nova_request_ws, #{protocol => ws}}]
}.

/secure/apanws/:ws should be below secure and not by itself that we can see in the tree structure.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.