This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app = require '../app' | |
| app.constant 'APIv1', -> | |
| api = {} | |
| # Base (alias) | |
| base = '/api/v1' | |
| # Base | |
| api.base = base |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.config(['$stateProvider', function($stateProvider) { | |
| var auth = { | |
| name: 'auth', | |
| abstract: true, | |
| template: '<div ui-view></div>', | |
| resolve: { | |
| auth: ['AuthSrvc', function(AuthSrvc) { | |
| return AuthSrvc.check() | |
| }] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.config([ | |
| '$stateProvider', | |
| function($stateProvider) { | |
| var state = { | |
| name: 'login', | |
| url: '/login', | |
| // resolve: { | |
| // guest: ['AuthSrvc', function(AuthSrvc) { | |
| // return AuthSrvc.guest(); | |
| // }] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Controller: | |
| // calls repository | |
| // repository calls its abstract parent | |
| // abstract parent calls query / command | |
| // has validabletrait (which valides itself with the given rules) | |
| // abstract parent calls transformer | |
| // return | |
| // repository does it the eloquent way or mongo or whatever way | |
| // repository returns transformed data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Controller: | |
| // calls command / query | |
| // has validabletrait (which valides itself with the given rules) | |
| // command / query calls repository | |
| // repository does the eloquent, mongo, or whatever way | |
| // calls transformer | |
| // returns a json response |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app/ | |
| Core/ | |
| Common/ | |
| UserManagement/ | |
| Bindings/ | |
| Command/ | |
| Exceptions/ | |
| Queries/ | |
| Repositories/ | |
| Transformers/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - app/ | |
| - MyOwnNameSpace/ | |
| - Filters | |
| - Controllers | |
| - .. | |
| - .. | |
| - .. | |
| - .. | |
| - .. | |
| - Models |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>PAHIRAP!</title> | |
| </head> | |
| <body> | |
| <form> | |
| Enter Code Here!<br> | |
| <textarea class="code_input" rows="30" cols="50" id="code_input"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Acme\Repositories\Interfaces\User as UserRepository; | |
| class UserController extends BaseController { | |
| // left blank for brevity | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php namespace Acme\Repositories; | |
| use Acme\Repositories\UserRepositoryInterface; | |
| class EloquentUserRepository extends EloquentBaseRepository implements UserInterface { | |
| // left blank for brevity | |
| } |
OlderNewer