@atlantjs/backend 11.0.23 → 11.0.24
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.
|
@@ -4,6 +4,7 @@ interface UnifiedControllerOptions extends ControllerOptions {
|
|
|
4
4
|
method: "get" | "post" | "put" | "patch" | "delete";
|
|
5
5
|
}
|
|
6
6
|
export declare function UnifiedController(options: UnifiedControllerOptions): ClassDecorator;
|
|
7
|
+
export declare const Endpoint: (method: "get" | "post" | "put" | "patch" | "delete", route: string) => ClassDecorator;
|
|
7
8
|
export declare const Get: (route: string) => ClassDecorator;
|
|
8
9
|
export declare const Post: (route: string) => ClassDecorator;
|
|
9
10
|
export declare const Put: (route: string) => ClassDecorator;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Delete = exports.Patch = exports.Put = exports.Post = exports.Get = void 0;
|
|
3
|
+
exports.Delete = exports.Patch = exports.Put = exports.Post = exports.Get = exports.Endpoint = void 0;
|
|
4
4
|
exports.UnifiedController = UnifiedController;
|
|
5
5
|
const routing_controllers_1 = require("routing-controllers");
|
|
6
6
|
function UnifiedController(options) {
|
|
@@ -22,6 +22,8 @@ function UnifiedController(options) {
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
+
const Endpoint = (method, route) => UnifiedController({ method, route });
|
|
26
|
+
exports.Endpoint = Endpoint;
|
|
25
27
|
const Get = (route) => UnifiedController({ method: "get", route });
|
|
26
28
|
exports.Get = Get;
|
|
27
29
|
const Post = (route) => UnifiedController({ method: "post", route });
|
package/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import "reflect-metadata";
|
|
|
3
3
|
export { getFromContainer, UseBefore, JsonController as JsonForce, Res, Body, Req, Param, QueryParam, } from "routing-controllers";
|
|
4
4
|
export { NextFunction, Request, RequestHandler, Response } from "express";
|
|
5
5
|
export { HttpContentTypePoint } from "./backend/boundary/forces/thetas/http-content-type.point";
|
|
6
|
-
export { Get, Post, Put, Patch, Delete, } from "./backend/boundary/forces/thetas/http-method.theta";
|
|
6
|
+
export { Get, Post, Put, Patch, Delete, Endpoint, } from "./backend/boundary/forces/thetas/http-method.theta";
|
|
7
7
|
export { APP_PORT, LOAD_MODULES, CORS_ALLOWED_ORIGINS, ENVIRONMENT, } from "./backend/stitch/verses";
|
|
8
8
|
export { FakeServer } from "./setup-test/faker-server";
|
|
9
9
|
export { createWorkStub } from "./setup-test/create-work-stub";
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EmailDeliveryProvider = exports.ForceResponse = exports.StitchesAbstract = exports.initialize = exports.stitchable = exports.toStitch = exports.Server = exports.DefaultErrorHandlerTheta = exports.CorsTheta = exports.BodyParserTheta = exports.DiContainerAbstract = exports.diContainer = exports.startContainer = exports.ValidatorAbstract = exports.ForceAbstract = exports.WorkAbstract = exports.ServiceAbstract = exports.RepositoryAbstract = exports.ProviderAbstract = exports.ThetaHandlerAbstract = exports.createWorkStub = exports.FakeServer = exports.ENVIRONMENT = exports.CORS_ALLOWED_ORIGINS = exports.LOAD_MODULES = exports.APP_PORT = exports.Delete = exports.Patch = exports.Put = exports.Post = exports.Get = exports.HttpContentTypePoint = exports.QueryParam = exports.Param = exports.Req = exports.Body = exports.Res = exports.JsonForce = exports.UseBefore = exports.getFromContainer = void 0;
|
|
3
|
+
exports.EmailDeliveryProvider = exports.ForceResponse = exports.StitchesAbstract = exports.initialize = exports.stitchable = exports.toStitch = exports.Server = exports.DefaultErrorHandlerTheta = exports.CorsTheta = exports.BodyParserTheta = exports.DiContainerAbstract = exports.diContainer = exports.startContainer = exports.ValidatorAbstract = exports.ForceAbstract = exports.WorkAbstract = exports.ServiceAbstract = exports.RepositoryAbstract = exports.ProviderAbstract = exports.ThetaHandlerAbstract = exports.createWorkStub = exports.FakeServer = exports.ENVIRONMENT = exports.CORS_ALLOWED_ORIGINS = exports.LOAD_MODULES = exports.APP_PORT = exports.Endpoint = exports.Delete = exports.Patch = exports.Put = exports.Post = exports.Get = exports.HttpContentTypePoint = exports.QueryParam = exports.Param = exports.Req = exports.Body = exports.Res = exports.JsonForce = exports.UseBefore = exports.getFromContainer = void 0;
|
|
4
4
|
require("./backend/stitch/verses/load-verses");
|
|
5
5
|
require("reflect-metadata");
|
|
6
6
|
const setup_1 = require("./setup");
|
|
@@ -22,6 +22,7 @@ Object.defineProperty(exports, "Post", { enumerable: true, get: function () { re
|
|
|
22
22
|
Object.defineProperty(exports, "Put", { enumerable: true, get: function () { return http_method_theta_1.Put; } });
|
|
23
23
|
Object.defineProperty(exports, "Patch", { enumerable: true, get: function () { return http_method_theta_1.Patch; } });
|
|
24
24
|
Object.defineProperty(exports, "Delete", { enumerable: true, get: function () { return http_method_theta_1.Delete; } });
|
|
25
|
+
Object.defineProperty(exports, "Endpoint", { enumerable: true, get: function () { return http_method_theta_1.Endpoint; } });
|
|
25
26
|
var verses_1 = require("./backend/stitch/verses");
|
|
26
27
|
Object.defineProperty(exports, "APP_PORT", { enumerable: true, get: function () { return verses_1.APP_PORT; } });
|
|
27
28
|
Object.defineProperty(exports, "LOAD_MODULES", { enumerable: true, get: function () { return verses_1.LOAD_MODULES; } });
|