Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
koishi-decorators
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vlssu
koishi-decorators
Commits
81f73ffe
Commit
81f73ffe
authored
Feb 15, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move http decs away
parent
383910e8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
15 deletions
+18
-15
index.ts
index.ts
+1
-0
src/decorators/decorators.ts
src/decorators/decorators.ts
+0
-15
src/http-decorators/http-decorators.ts
src/http-decorators/http-decorators.ts
+16
-0
src/http-decorators/index.ts
src/http-decorators/index.ts
+1
-0
No files found.
index.ts
View file @
81f73ffe
import
'
reflect-metadata
'
;
import
'
reflect-metadata
'
;
export
*
from
'
./src/register
'
;
export
*
from
'
./src/register
'
;
export
*
from
'
./src/decorators
'
;
export
*
from
'
./src/decorators
'
;
export
*
from
'
./src/http-decorators
'
;
export
*
from
'
./src/def/interfaces
'
;
export
*
from
'
./src/def/interfaces
'
;
export
*
from
'
./src/utility
'
;
export
*
from
'
./src/utility
'
;
src/decorators/decorators.ts
View file @
81f73ffe
...
@@ -25,21 +25,6 @@ export const UseBeforeEvent = (
...
@@ -25,21 +25,6 @@ export const UseBeforeEvent = (
):
MethodDecorator
=>
DoRegister
.
beforeEvent
({
name
,
prepend
});
):
MethodDecorator
=>
DoRegister
.
beforeEvent
({
name
,
prepend
});
export
const
UsePlugin
=
():
MethodDecorator
=>
DoRegister
.
plugin
();
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
>
(
export
function
UseCommand
<
D
extends
string
>
(
def
:
D
,
def
:
D
,
config
?:
CommandConfigExtended
,
config
?:
CommandConfigExtended
,
...
...
src/http-decorators/http-decorators.ts
0 → 100644
View file @
81f73ffe
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
;
src/http-decorators/index.ts
0 → 100644
View file @
81f73ffe
export
*
from
'
./http-decorators
'
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment