enov / Aurora

Kohana module for manual data mapping, JSON and REST
MIT License
17 stars 2 forks source link

Config based API routing #2

Closed enov closed 10 years ago

enov commented 10 years ago

RESTful API for Backbone.js to CRUD your models requires that we create Controllers extended from Controller_API.

Since most of the times those controllers are empty and contain no additional logic, I am thinking enabling RESTful API, just by naming the common names (cname) via config:

config/routes.php

 array(
        'News_Category',
        'News_Post',
    ),
);