Website Summary Files Commits Branches @commit @diff @stats
path: root / src / app / app-constants.module.ts
diff options
context:
space:
mode:
Commitbcd88af53b1a920d728ec98b45daa9ac2e2c0917 (patch)
Author
 transtrike <transtrike@gmail.com>
2021-02-12 19:04:53 +0200
Committer
 transtrike <transtrike@gmail.com>
2021-02-12 19:04:53 +0200
Filesfd27eef086822b0f02f74364cac0b940956d2458 /src/app/app-constants.module.ts
DevHive-Angular-bcd88af53b1a920d728ec98b45daa9ac2e2c0917.tar
DevHive-Angular-bcd88af53b1a920d728ec98b45daa9ac2e2c0917.tar.gz
DevHive-Angular-bcd88af53b1a920d728ec98b45daa9ac2e2c0917.zip
Parent1d1f05e3f74d70a558b4847a9107afa7952131cf (diff)
Moved from DevHive
1 files changed, 20 insertions, 0 deletions
-rw-r--r--src/app/app-constants.module.ts20
diff --git a/src/app/app-constants.module.ts b/src/app/app-constants.module.ts
new file mode 100644
index 0000000..d72af53
--- /dev/null
+++ b/src/app/app-constants.module.ts
@@ -0,0 +1,20 @@
+export class AppConstants {
+ public static BASE_API_URL = 'http://localhost:5000/api';
+
+ public static API_USER_URL = AppConstants.BASE_API_URL + '/User';
+ public static API_USER_LOGIN_URL = AppConstants.API_USER_URL + '/login';
+ public static API_USER_REGISTER_URL = AppConstants.API_USER_URL + '/register';
+
+ public static API_LANGUAGE_URL = AppConstants.BASE_API_URL + '/Language';
+ public static API_TECHNOLOGY_URL = AppConstants.BASE_API_URL + '/Technology';
+
+ public static API_POST_URL = AppConstants.BASE_API_URL + '/Post';
+ public static API_FEED_URL = AppConstants.BASE_API_URL + '/Feed';
+ public static API_COMMENT_URL = AppConstants.BASE_API_URL + '/Comment';
+
+ public static PAGE_SIZE = 10;
+ public static FALLBACK_PROFILE_ICON = 'assets/images/feed/profile-pic.png';
+
+ public static SESSION_TOKEN_KEY = 'UserCred';
+ public static ADMIN_ROLE_NAME = 'Admin';
+}