Skip to content

Commit d24b670

Browse files
committed
chore: wip
1 parent fda086e commit d24b670

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.stacks/core/eslint-config-basic/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ module.exports = {
5151
'!.vscode',
5252
// force exclude
5353
'**/.vitepress/cache',
54+
'**/storage/framework',
5455
],
5556
plugins: [
5657
'html',

.stacks/core/router/src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { RedirectCode, Route, RouteGroupOptions, StatusCode } from '@stacksjs/types'
22
import { projectPath } from '@stacksjs/path'
33

4-
export interface Router {
4+
export interface RouterInterface {
55
get(url: Route['url'], callback: Route['callback']): this
66
post(url: Route['url'], callback: Route['callback']): this
77
view(url: Route['url'], callback: Route['callback']): this
@@ -15,7 +15,7 @@ export interface Router {
1515
getRoutes(): Promise<Route[]>
1616
}
1717

18-
export class Router implements Router {
18+
export class Router implements RouterInterface {
1919
private routes: Route[] = []
2020

2121
private addRoute(method: Route['method'], uri: string, callback: Route['callback'] | string | object, statusCode: StatusCode): void {
@@ -124,21 +124,21 @@ export class Router implements Router {
124124
}
125125

126126
public name(name: string): this {
127-
// @ts-expect-error
127+
// @ts-expect-error - this is fine for now
128128
this.routes[this.routes.length - 1].name = name
129129

130130
return this
131131
}
132132

133133
public middleware(middleware: Route['middleware']): this {
134-
// @ts-expect-error
134+
// @ts-expect-error - this is fine for now
135135
this.routes[this.routes.length - 1].middleware = middleware
136136

137137
return this
138138
}
139139

140140
public prefix(prefix: string): this {
141-
// @ts-expect-error
141+
// @ts-expect-error - this is fine for now
142142
this.routes[this.routes.length - 1].prefix = prefix
143143

144144
return this

app/middleware/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Middleware } from '../../.stacks/core/router/src/middleware'
1+
import { Middleware } from '@stackjs/router'
22

33
export default new Middleware({
44
name: 'logger',

0 commit comments

Comments
 (0)