This commit is contained in:
simon.franken
2026-02-16 17:12:47 +01:00
parent a9228d19c8
commit fc06dac40e
11 changed files with 49 additions and 46 deletions

View File

@@ -86,36 +86,41 @@ SESSION_SECRET="your-secure-session-secret-min-32-chars"
# Server
PORT=3001
NODE_ENV=development
FRONTEND_URL="http://localhost:5173"
APP_URL="http://localhost:5173"
```
## API Endpoints
### Authentication
- `GET /auth/login` - Initiate OIDC login
- `GET /auth/callback` - OIDC callback
- `POST /auth/logout` - End session
- `GET /auth/me` - Get current user
### Clients
- `GET /api/clients` - List clients
- `POST /api/clients` - Create client
- `PUT /api/clients/:id` - Update client
- `DELETE /api/clients/:id` - Delete client
### Projects
- `GET /api/projects` - List projects
- `POST /api/projects` - Create project
- `PUT /api/projects/:id` - Update project
- `DELETE /api/projects/:id` - Delete project
### Time Entries
- `GET /api/time-entries` - List entries (with filters/pagination)
- `POST /api/time-entries` - Create entry
- `PUT /api/time-entries/:id` - Update entry
- `DELETE /api/time-entries/:id` - Delete entry
### Timer
- `GET /api/timer` - Get ongoing timer
- `POST /api/timer/start` - Start timer
- `PUT /api/timer` - Update timer (set project)
@@ -134,6 +139,7 @@ User (oidc sub)
## Technology Stack
**Backend:**
- Node.js + Express
- TypeScript
- Prisma ORM
@@ -141,6 +147,7 @@ User (oidc sub)
- OpenID Client
**Frontend:**
- React 18
- TypeScript
- TanStack Query
@@ -150,4 +157,4 @@ User (oidc sub)
## License
MIT
MIT