lvivski / start

Sinatra inspired web development framework for Dart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Throwing "No such HTTP method" is confusing

vsavkin opened this issue · comments

I think it'd be better to replace noSuchMethod with explicit method declarations of get,post, etc.. But even if there is reason to keep it, the error is super confusing. For instance:

get('/lala', (req, res){
   Hello
});

Will raise "No such HTTP method", because "Hello" isn't in the list of http methods.