File tree Expand file tree Collapse file tree 5 files changed +38
-24
lines changed
Expand file tree Collapse file tree 5 files changed +38
-24
lines changed Original file line number Diff line number Diff line change 2424 "@kanun-hq/plugin-file" : " ^0.1.7" ,
2525 "@prisma/adapter-pg" : " ^7.5.0" ,
2626 "@prisma/client" : " ^7.5.0" ,
27+ "@resora/plugin-clear-router" : " ^0.1.0" ,
2728 "argon2" : " ^0.44.0" ,
2829 "arkormx" : " ^1.3.0" ,
2930 "chalk" : " ^5.6.2" ,
3738 "kanun" : " ^1.0.10" ,
3839 "multer" : " ^2.1.1" ,
3940 "pg" : " ^8.18.0" ,
40- "resora" : " ^0.2.18 "
41+ "resora" : " ^1.0.0 "
4142 },
4243 "devDependencies" : {
4344 "@eslint/js" : " ^10.0.1" ,
Original file line number Diff line number Diff line change 11import { ArkstackRouteListOptions } from '@arkstack/contract'
22import { Router as ClearRouter } from 'clear-router/express'
33import { RequestError } from './utils/errors'
4+ import { clearRouterExpressPlugin } from '@resora/plugin-clear-router'
45import express from 'express'
56import { join } from 'node:path'
67import { pathToFileURL } from 'node:url'
8+ import { registerPlugin } from 'resora'
9+
10+ registerPlugin ( clearRouterExpressPlugin )
711
812export class Router extends ClearRouter {
913 static async bind ( ) {
Original file line number Diff line number Diff line change 2525 "@kanun-hq/plugin-file" : " ^0.1.7" ,
2626 "@prisma/adapter-pg" : " ^7.5.0" ,
2727 "@prisma/client" : " ^7.5.0" ,
28+ "@resora/plugin-clear-router" : " ^0.1.0" ,
2829 "argon2" : " ^0.44.0" ,
2930 "arkormx" : " ^1.3.0" ,
3031 "chalk" : " ^5.6.2" ,
3637 "h3" : " 2.0.1-rc.16" ,
3738 "kanun" : " ^1.0.10" ,
3839 "pg" : " ^8.18.0" ,
39- "resora" : " ^0.2.17 "
40+ "resora" : " ^1.0.0 "
4041 },
4142 "devDependencies" : {
4243 "@eslint/js" : " ^10.0.1" ,
Original file line number Diff line number Diff line change 11import { ArkstackRouteListOptions } from '@arkstack/contract'
22import { Router as ClearRouter } from 'clear-router/h3'
33import { H3 } from 'h3'
4+ import { clearRouterH3Plugin } from '@resora/plugin-clear-router'
45import { join } from 'node:path'
56import { pathToFileURL } from 'node:url'
7+ import { registerPlugin } from 'resora'
8+
9+ registerPlugin ( clearRouterH3Plugin )
610
711export class Router extends ClearRouter {
812 static async bind ( app : H3 ) {
You can’t perform that action at this time.
0 commit comments