change server_url

This commit is contained in:
wlh
2014-12-26 17:11:05 +08:00
parent cb150f6a38
commit efdf1f4ccb
3 changed files with 53 additions and 21 deletions
+30
View File
@@ -0,0 +1,30 @@
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
config.sample.json
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules
# Users Environment Variables
.lock-wscript
+22 -20
View File
@@ -50,6 +50,7 @@
})(window);;
var app = angular.module('app', ['ui.router', 'ngCookies']);
var SERVER_BASE_URL = 'http://123.57.39.116:6547/';
//初始化配置
app.run(['$rootScope', function($rootScope) {
@@ -60,28 +61,29 @@ app.run(['$rootScope', function($rootScope) {
}]);
//调用的服务列表
app.constant('ServiceConfig', {
wei_content: 'http://127.0.0.1:3000/wei/get',
wei_zan: 'http://127.0.0.1:3000/wei/zan',
wei_comment: 'http://127.0.0.1:3000/wei/comment',
wei_create: 'http://127.0.0.1:3000/wei/create',
user_get: 'http://127.0.0.1:3000/user/get',
user_login: 'http://127.0.0.1:3000/user/login',
user_register: 'http://127.0.0.1:3000/user/register',
user_common: 'http://127.0.0.1:3000/user/getCommon',
user_ben: 'http://127.0.0.1:3000/user/getBen',
user_self: 'http://127.0.0.1:3000/user/getSelf',
user_common_update: 'http://127.0.0.1:3000/user/updateCommon',
user_ben_update: 'http://127.0.0.1:3000/user/updateBen',
user_ben_get_name: 'http://127.0.0.1:3000/user/singleBen/name',
user_common_get_nickname: 'http://127.0.0.1:3000/user/getCommon/name',
user_ben_get_realname: 'http://127.0.0.1:3000/user/singleBen/name',
wei_get_token_page: 'http://127.0.0.1:3000/wei/getByToken',
wei_delete: 'http://127.0.0.1:3000/wei/delete',
user_update_password: 'http://127.0.0.1:3000/user/updatePassword',
article_get: 'http://127.0.0.1:3000/article/get',
article_detail: 'http://127.0.0.1:3000/article/get/id',
wei_content: SERVER_BASE_URL + 'wei/get',
wei_zan: SERVER_BASE_URL + 'wei/zan',
wei_comment: SERVER_BASE_URL + 'wei/comment',
wei_create: SERVER_BASE_URL + 'wei/create',
user_get: SERVER_BASE_URL + 'user/get',
user_login: SERVER_BASE_URL + 'user/login',
user_register: SERVER_BASE_URL + 'user/register',
user_common: SERVER_BASE_URL + 'user/getCommon',
user_ben: SERVER_BASE_URL + 'user/getBen',
user_self: SERVER_BASE_URL + 'user/getSelf',
user_common_update: SERVER_BASE_URL + 'user/updateCommon',
user_ben_update: SERVER_BASE_URL + 'user/updateBen',
user_ben_get_name: SERVER_BASE_URL + 'user/singleBen/name',
user_common_get_nickname: SERVER_BASE_URL + 'user/getCommon/name',
user_ben_get_realname: SERVER_BASE_URL + 'user/singleBen/name',
wei_get_token_page: SERVER_BASE_URL + 'wei/getByToken',
wei_delete: SERVER_BASE_URL + 'wei/delete',
user_update_password: SERVER_BASE_URL + 'user/updatePassword',
article_get: SERVER_BASE_URL + 'article/get',
article_detail: SERVER_BASE_URL + 'article/get/id',
amap_url: 'http://webapi.amap.com/maps?v=1.3&key=ad925c5003760094713775d64748d872&callback=init'
});
+1 -1
View File
File diff suppressed because one or more lines are too long