[TIC-Web] Bug fixed. the problem that paging
[archive/20170607/tools/tic.git] / app.js
diff --git a/app.js b/app.js
index a2c3c32..5be94ea 100644 (file)
--- a/app.js
+++ b/app.js
@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 var express = require('express');
 var session = require('express-session');
 var path = require('path');
@@ -5,11 +21,12 @@ var bodyParser = require('body-parser');
 var JL = require('jsnlog').JL;
 var jsnlog_nodejs = require('jsnlog-nodejs').jsnlog_nodejs;
 var logger = JL('app.js');
-var CONFIG = require('./config.json');
+var AppConfig = require('./config.json');
+
 
 var app = express();
 /* app config */
-app.set('port', process.env.PORT || CONFIG.TIC_WEB.PORT);
+app.set('port', process.env.PORT || AppConfig.TIC_WEB.PORT);
 app.use(bodyParser.json());
 app.use(bodyParser.urlencoded({extended: true}));
 app.use(express.static(path.join(__dirname, '/public/src'))); //module directory