Add api-server and CLI applications
- Create api-server with Bun.serve: - oRPC router with stub handlers for all procedures - Auth middleware placeholder - CORS configuration - Create CLI tool with stricli: - bootstrap command for initial superuser creation - Placeholder commands for auth, user, org management Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
14
apps/api-server/src/middleware/auth.ts
Normal file
14
apps/api-server/src/middleware/auth.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Authentication middleware for oRPC server
|
||||
*
|
||||
* This middleware will be used to:
|
||||
* - Verify JWT tokens from Authorization header
|
||||
* - Extract user context from valid tokens
|
||||
* - Attach user information to request context
|
||||
*
|
||||
* TODO: Implement in Phase 2
|
||||
*/
|
||||
|
||||
export const authMiddleware = async (): Promise<never> => {
|
||||
throw new Error("Auth middleware not implemented");
|
||||
};
|
||||
Reference in New Issue
Block a user