diff --git a/admin/app/api.js b/admin/app/api.js index 2e928445..89aa9e28 100644 --- a/admin/app/api.js +++ b/admin/app/api.js @@ -1,6 +1,6 @@ //Switch Classes Function function getAPI(){ - return "http://127.0.0.1:8000/"; + //return "http://127.0.0.1:8000/"; // to avoid CORS issue, use Nginx to proxy myems-api to path /api with the same ip and port as myems-web - //return window.location.protocol+"//"+window.location.hostname+":"+window.location.port+"/api/"; + return window.location.protocol+"//"+window.location.hostname+":"+window.location.port+"/api/"; } diff --git a/myems-api/LICENSE b/myems-api/LICENSE index c6cedd28..b91c1ac4 100644 --- a/myems-api/LICENSE +++ b/myems-api/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 MyEMS +Copyright (c) 2021 MyEMS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/web/LICENSE b/web/LICENSE index c6cedd28..b91c1ac4 100644 --- a/web/LICENSE +++ b/web/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 MyEMS +Copyright (c) 2021 MyEMS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal