forked from appception/appception
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testsToWrite.txt
79 lines (58 loc) · 2.4 KB
/
testsToWrite.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Tests to write:
===========================================
===========================================
===========================================
========= Client: =========
===========================================
===========================================
===========================================
===========================================
===========================================
===========================================
========= Server: =========
===========================================
===========================================
===========================================
Test express???
Test config???
Test auth???
Test routes:
app.use('/api/testAPI', require('./api/testAPI'));
app.use('/api/users', require('./api/user'));
app.use('/auth', require('./auth'));
app.use(connect()); // BEST GUESS...
app.use('/brackets', brackets()); // BEST GUESS...
// app.get('/nimble', function(req, res){
// res.send('Hello World');
// });
// External libraries that we want to expose for Nimble/Brackets e.g. Extensions.
app.use( "/thirdparty", express.static(path.join(config.root, './bower_components')) );
// Setup static route to serve Nimble/Brackets on "/nimble"
app.use( "/nimble", express.static(path.join(config.root, './nimble/src')) );
// This route is exposed for extension loading (see makedrive-sync-icon in ExtensionLoader.js)
app.use( "/extensions/default/", express.static(path.join(config.root, './bower_components')) );
console.log(path.join(config.root, './nimble/src'))
// All undefined asset or api routes should return a 404
app.route('/:url(api|auth|components|app|bower_components|assets)/*')
.get(errors[404]);
app.route('/nimble')
.get(function(req, res) {
console.log()
res.sendfile(app.get('appPath') + '/nimble/src');
});
// All other routes should redirect to the index.html
app.route('/*')
.get(function(req, res) {
res.sendfile(app.get('appPath') + '/index.html');
});
//server/auth/index.js
// Passport Configuration
require('./local/passport').setup(User, config);
require('./github/passport').setup(User, config);
var router = express.Router();
router.use('/local', require('./local'));
router.use('/github', require('./github'));
//server/api/projects
var express = require('express');
var controller = require('./projects.controller');
var router = express.Router();