Reorganize into monorepo layout, move mitarbeiter-app to legacy reference
Consolidates the previously separate omsorgapp and omsorgCore repos (each had their own nested .git with GitHub history) plus the old root-level website/mitarbeiter-app into a single monorepo, matching the structure already documented in the root CLAUDE.md. Also moves the PHP employee app aside as omsorgWeb/mitarbeiter-app-legacy/ to serve as a template for a ground-up rewrite. Fixes .gitignore in the same pass: the config-secrets/uploads/data patterns were unanchored (relative to repo root, not depth-agnostic), so they silently stopped matching once the app moved under omsorgWeb/. Patterns are now **/-prefixed and cover both mitarbeiter-app and mitarbeiter-app-legacy, keeping DB/SMTP credentials and uploaded employee documents out of version control. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
8beb0fcf52
commit
b6c1389c55
@@ -0,0 +1,28 @@
|
||||
const { request } = require('./httpClient.cjs');
|
||||
|
||||
// Kapselt /api/employees von omsorgCore (EmployeesController). Feldnamen sind
|
||||
// camelCase, da ASP.NET Core standardmäßig camelCase-JSON ausgibt.
|
||||
async function listEmployees(accessToken, { search, status, employmentType, page = 1, pageSize = 20 } = {}) {
|
||||
const params = new URLSearchParams();
|
||||
if (search) params.set('search', search);
|
||||
if (status) params.set('status', status);
|
||||
if (employmentType) params.set('employmentType', employmentType);
|
||||
params.set('page', page);
|
||||
params.set('pageSize', pageSize);
|
||||
|
||||
return request('GET', `/api/employees?${params.toString()}`, { accessToken });
|
||||
}
|
||||
|
||||
async function createEmployee(accessToken, payload) {
|
||||
return request('POST', '/api/employees', { body: payload, accessToken });
|
||||
}
|
||||
|
||||
async function getEmployee(accessToken, id) {
|
||||
return request('GET', `/api/employees/${id}`, { accessToken });
|
||||
}
|
||||
|
||||
async function updateEmployee(accessToken, id, payload) {
|
||||
return request('PUT', `/api/employees/${id}`, { body: payload, accessToken });
|
||||
}
|
||||
|
||||
module.exports = { listEmployees, createEmployee, getEmployee, updateEmployee };
|
||||
Reference in New Issue
Block a user