Commit 81f73ffe authored by nanahira's avatar nanahira

move http decs away

parent 383910e8
import 'reflect-metadata';
export * from './src/register';
export * from './src/decorators';
export * from './src/http-decorators';
export * from './src/def/interfaces';
export * from './src/utility';
......@@ -25,21 +25,6 @@ export const UseBeforeEvent = (
): MethodDecorator => DoRegister.beforeEvent({ name, prepend });
export const UsePlugin = (): MethodDecorator => DoRegister.plugin();
export const Get = (path: string) => DoRegister.route({ path, method: 'get' });
export const Post = (path: string) =>
DoRegister.route({ path, method: 'post' });
export const Put = (path: string) => DoRegister.route({ path, method: 'put' });
export const Delete = (path: string) =>
DoRegister.route({ path, method: 'delete' });
export const Patch = (path: string) =>
DoRegister.route({ path, method: 'patch' });
export const Options = (path: string) =>
DoRegister.route({ path, method: 'options' });
export const Head = (path: string) =>
DoRegister.route({ path, method: 'head' });
export const All = (path: string) => DoRegister.route({ path, method: 'all' });
export const Ws = DoRegister.ws;
export function UseCommand<D extends string>(
def: D,
config?: CommandConfigExtended,
......
import { DoRegister } from '../registry';
export const Get = (path: string) => DoRegister.route({ path, method: 'get' });
export const Post = (path: string) =>
DoRegister.route({ path, method: 'post' });
export const Put = (path: string) => DoRegister.route({ path, method: 'put' });
export const Delete = (path: string) =>
DoRegister.route({ path, method: 'delete' });
export const Patch = (path: string) =>
DoRegister.route({ path, method: 'patch' });
export const Options = (path: string) =>
DoRegister.route({ path, method: 'options' });
export const Head = (path: string) =>
DoRegister.route({ path, method: 'head' });
export const All = (path: string) => DoRegister.route({ path, method: 'all' });
export const Ws = DoRegister.ws;
export * from './http-decorators';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment