merged private server and console to private-cloud

This commit is contained in:
strawmanbobi
2020-01-12 19:15:08 +08:00
parent 15d977ccd6
commit 90f2d17331
176 changed files with 220265 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
/**
* Created by strawmanbobi
* 2016-11-27
*/
var app = require('../irext_console.js');
var authenticationService = require('../services/authentication_service.js');
app.post('/irext/certificate/admin_login', authenticationService.adminLogin);
app.post('/irext/certificate/token_verify', authenticationService.verifyToken);
app.post('/irext/certificate/change_pw', authenticationService.changePassword);

View File

@@ -0,0 +1,36 @@
/**
* Created by strawmanbobi
* 2016-11-27
*/
var app = require('../irext_console.js');
var intService = require('../services/code_manage_service.js');
app.post('/irext/int/list_provinces', intService.listProvinces);
app.post('/irext/int/list_cities', intService.listCities);
app.post('/irext/int/list_operators', intService.listOperators);
app.post('/irext/int/list_categories', intService.listCategories);
app.post('/irext/int/list_brands', intService.listBrands);
app.post('/irext/int/list_indexes', intService.listIndexes);
app.post('/irext/int/list_ir_protocols', intService.listIRProtocols);
app.post('/irext/int/download_bin', intService.downloadIndex);
app.post('/irext/int/list_unpublished_brands', intService.listUnpublishedBrands);
app.post('/irext/int/list_unpublished_remote_indexes', intService.listUnpublishedRemoteIndexes);
app.post('/irext/int/create_remote_index', intService.createRemoteIndex);
app.post('/irext/int/delete_remote_index', intService.deleteRemoteIndex);
app.post('/irext/int/verify_remote_index', intService.verifyRemoteIndex);
app.post('/irext/int/fallback_remote_index', intService.fallbackRemoteIndex);
app.post('/irext/int/publish_remote_index', intService.publishRemoteIndex);
app.post('/irext/int/create_brand', intService.createBrand);
app.post('/irext/int/publish_brands', intService.publishBrands);
app.post('/irext/int/create_protocol', intService.createProtocol);
app.get('/irext/int/list_remote_indexes', intService.listRemoteIndexes);
app.get('/irext/int/search_remote_indexes', intService.searchRemoteIndexes);
app.get('/irext/int/download_remote_index', intService.downloadRemoteIndex);

11
console/routes/index.js Normal file
View File

@@ -0,0 +1,11 @@
/**
* Created by strawmanbobi
* 2016-11-27
*/
var server = require('../irext_console.js');
require('./navigation_routes.js');
require('./authentication_routes.js');
require('./code_manage_routes.js');
require('./stat_routes.js');

View File

@@ -0,0 +1,9 @@
/**
* Created by Strawmanbobi
* 2016-12-05
*/
var app = require('../irext_console.js');
var navigationService = require('../services/navigation_service.js');
app.post('/irext/nav/nav_to_url', navigationService.navToURL);

View File

@@ -0,0 +1,12 @@
/**
* Created by Strawmanbobi
* 2016-11-27
*/
var app = require('../irext_console.js');
var statService = require('../services/stat_service.js');
app.post('/irext/stat/generic_count', statService.genericCount);
app.post('/irext/stat/stat_categories', statService.statCategories);
app.post('/irext/stat/stat_brands', statService.statBrands);
app.post('/irext/stat/stat_cities', statService.statCities);