refactor(protocol): extract server contracts (#33708)
This commit is contained in:
parent
f9dac262ff
commit
56a37c3640
77 changed files with 1070 additions and 878 deletions
6
packages/protocol/src/middleware/authorization.ts
Normal file
6
packages/protocol/src/middleware/authorization.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { HttpApiMiddleware } from "effect/unstable/httpapi"
|
||||
import { UnauthorizedError } from "../errors"
|
||||
|
||||
export class Authorization extends HttpApiMiddleware.Service<Authorization>()("@opencode/HttpApiAuthorization", {
|
||||
error: UnauthorizedError,
|
||||
}) {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue