diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-15 04:36:40 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-15 04:36:40 +0200 |
commit | 04e421cf2f4f801d7e5e6b1fbdb8221855ad4613 (patch) | |
tree | 4a5e0b5a447ed75813fd4ef92c35f2e2fb4f1ac8 /js/config/config.js | |
parent | adb9dfeb350bdb92e998fefc2827ffe8b58256a2 (diff) |
add basic files for js rewrite
Diffstat (limited to 'js/config/config.js')
-rw-r--r-- | js/config/config.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/config/config.js b/js/config/config.js new file mode 100644 index 000000000..dce40a0b4 --- /dev/null +++ b/js/config/config.js @@ -0,0 +1,17 @@ +/** + * ownCloud - News + * + * This file is licensed under the Affero General Public License version 3 or + * later. See the COPYING file. + * + * @author Bernhard Posselt <dev@bernhard-posselt.com> + * @copyright Bernhard Posselt 2012, 2014 + */ +app.config(function ($routeProvider, $provide) { + 'use strict'; + + $routeProvider.otherwise('/'); + $provide.constant('baseUrl', OC.generateUrl('')); + +}); + |