feat: initialize project structure with essential files and configurations
- Add .gitignore to exclude unnecessary files and directories - Create .npmrc for npm authentication - Add AGENTS.md for project documentation - Initialize package.json with project metadata and dependencies - Implement app.ts to set up the application and project manager - Create file-search module for searching files in a directory - Set up project manager and listener for managing project files - Implement project search functionality with MeiliSearch integration - Add routes for authentication and project management - Create scheduler for task management - Add tests for file searching and project management functionalities
This commit is contained in:
17
src/routes/auth.ts
Normal file
17
src/routes/auth.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { app } from '../app.ts';
|
||||
|
||||
app.route({
|
||||
path: 'auth',
|
||||
key: 'auth',
|
||||
id: 'auth',
|
||||
description: '用户身份验证中间件,校验请求令牌的合法性,验证通过后方可访问受保护接口',
|
||||
}).define(async (ctx) => { }).addTo(app, { overwrite: false });
|
||||
|
||||
app.route({
|
||||
path: 'auth-admin',
|
||||
key: 'auth-admin',
|
||||
id: 'auth-admin',
|
||||
description: '管理员权限验证中间件,在 auth 基础上进一步校验请求方是否具有管理员权限',
|
||||
}).define(async (ctx) => {
|
||||
|
||||
}).addTo(app, { overwrite: false });
|
||||
Reference in New Issue
Block a user