mielk-api 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
const PARENT_FOLDER = 'api/';
|
|
2
|
-
const
|
|
3
|
-
const ___CONNECTION___ = `${PARENT_FOLDER}/
|
|
2
|
+
const ___HTTP_STATUS___ = `${PARENT_FOLDER}/httpStatus`;
|
|
3
|
+
const ___CONNECTION___ = `${PARENT_FOLDER}/connection`;
|
|
4
4
|
export const Msg = {
|
|
5
5
|
apiStatus: {
|
|
6
|
-
ok: `${
|
|
7
|
-
created: `${
|
|
8
|
-
unauthorized: `${
|
|
9
|
-
badRequest: `${
|
|
10
|
-
notFound: `${
|
|
11
|
-
conflict: `${
|
|
12
|
-
serverError: `${
|
|
6
|
+
ok: `${___HTTP_STATUS___}:ok`,
|
|
7
|
+
created: `${___HTTP_STATUS___}:created`,
|
|
8
|
+
unauthorized: `${___HTTP_STATUS___}:unauthorized`,
|
|
9
|
+
badRequest: `${___HTTP_STATUS___}:badRequest`,
|
|
10
|
+
notFound: `${___HTTP_STATUS___}:notFound`,
|
|
11
|
+
conflict: `${___HTTP_STATUS___}:conflict`,
|
|
12
|
+
serverError: `${___HTTP_STATUS___}:serverError`,
|
|
13
13
|
},
|
|
14
14
|
connection: {
|
|
15
15
|
corsBlocked: `${___CONNECTION___}:corsBlocked`,
|