UNPKG
@cortical/core
Version:
latest (0.0.198)
0.0.198
0.0.196
0.0.195
0.0.194
0.0.193
0.0.192
0.0.191
0.0.190
0.0.189
0.0.188
0.0.187
0.0.186
0.0.185
0.0.184
0.0.183
0.0.182
0.0.181
0.0.180
0.0.179
0.0.178
0.0.177
0.0.176
0.0.175
0.0.174
0.0.173
0.0.172
0.0.171
0.0.170
0.0.169
0.0.168
0.0.167
0.0.166
0.0.165
0.0.164
0.0.163
0.0.162
0.0.160
0.0.159
0.0.158
0.0.157
0.0.156
0.0.155
0.0.154
0.0.153
0.0.151
0.0.150
0.0.149
0.0.148
0.0.147
0.0.146
0.0.145
0.0.144
0.0.143
0.0.142
0.0.141
0.0.140
0.0.139
0.0.138
0.0.137
0.0.135
0.0.134
0.0.133
0.0.132
0.0.131
0.0.130
A RESTful API framework for your apps based on GraphQL type system.
@cortical/core
/
sample
/
api
/
context
/
index.ts
10 lines
(8 loc)
•
244 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
ContextParams
,
BaseContext
}
from
'../../..'
;
export
class
Context
extends
BaseContext
{
/* * Assign your custom context logic here * public auth = new AuthContext(this); * public userLoader = new UserLoader(this); */
}