mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-19 07:26:49 +00:00
Going to start trying to get routing working
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
var express = require('express');
|
||||
var routes = require('./routes');
|
||||
var app = express();
|
||||
|
||||
// set the view engine to ejs
|
||||
|
||||
13
web/glorious-web/app.js
Normal file
13
web/glorious-web/app.js
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
// Declare app level module which depends on views, and components
|
||||
angular.module('gocryptoweb', [
|
||||
'ngRoute',
|
||||
'gocryptoweb.view1',
|
||||
'gocryptoweb.view2'
|
||||
]).
|
||||
config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) {
|
||||
$locationProvider.hashPrefix('!');
|
||||
|
||||
$routeProvider.otherwise({redirectTo: '/view1'});
|
||||
}]);
|
||||
3
web/glorious-web/routes/index.js
Normal file
3
web/glorious-web/routes/index.js
Normal file
@@ -0,0 +1,3 @@
|
||||
exports.index = function(req, res){
|
||||
res.render('layout');
|
||||
};
|
||||
Reference in New Issue
Block a user