You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
pocketcommunityweb/src/app/interface/HttpInterface.ts

20 lines
551 B

// 环境变量
import {environment} from '../../environments/environment';
// 请求接口
const HttpInterface = {
// 注册接口
register: '/api/manager/register',
// 获取邮箱类型接口
getEmailType: '/api/manager/emailType',
// 登陆接口
login: '/api/manager/login',
// 发送验证码接口
sendCode: '/api/manager/sendcode'
};
// tslint:disable-next-line:forin
for (const key in HttpInterface) {
HttpInterface[key] = environment.apiServer + HttpInterface[key];
}
console.debug(HttpInterface);
export {HttpInterface};