dov-yih/resource-oriented-request

@prefix or static prefix is needed?

dov-yih opened this issue · 1 comments

like:

@prefix('/admin')
class Post extends API { 
}
// => /admin/posts

Or

class Post extends API {
    static prefix = '/addmin'
}
// => /admin/posts

@prefix mean it will affect globally. static prefix = '/admin' means it is class-level.