diff --git a/scripts/app.js b/scripts/app.js index 3878da7..68eba2e 100644 --- a/scripts/app.js +++ b/scripts/app.js @@ -4,15 +4,16 @@ app.config( function ($routeProvider, $locationProvider) { $routeProvider - .when("/", {templateUrl: "views/news.html", controller: "news"}) - .when("/content", {templateUrl: "views/content.html", controller: "content"}) + .when("/", {templateUrl: "views/blog.html", controller: "blog"}) + .when("/create", {templateUrl: "views/create.html", controller: "create"}) .when("/about", {templateUrl: "views/about.html", controller: "about"}) - .when("/login", {templateUrl: "views/login.html", controller: "login"}); + .when("/faq", {templateUrl: "views/faq.html", controller: "faq"}) + .otherwise("

yeey

"); $locationProvider.html5mode(true); } ); -app.controller("news", +app.controller("blog", [ "$scope", "$http", @@ -32,7 +33,7 @@ app.controller("news", ] ); -app.controller("content", +app.controller("create", [ "$scope", "$http", @@ -89,7 +90,7 @@ app.controller("about", ] ); -app.controller("login", +app.controller("faq", [ "$scope", function($scope)