10 lines
No EOL
444 B
JavaScript
10 lines
No EOL
444 B
JavaScript
angular.module('quay', ['restangular']).
|
|
config(['$routeProvider', function($routeProvider) {
|
|
$routeProvider.
|
|
when('/repository/', {templateUrl: '/static/partials/repo-list.html', controller: RepoListCtrl}).
|
|
when('/', {templateUrl: '/static/partials/landing.html', controller: LandingCtrl}).
|
|
otherwise({redirectTo: '/'});
|
|
}]).
|
|
config(function(RestangularProvider) {
|
|
RestangularProvider.setBaseUrl('/api/');
|
|
}); |