From e7c43ab4e7cd7d0cac9e2862b639bdda7aba9962 Mon Sep 17 00:00:00 2001 From: seb Date: Mon, 3 Aug 2026 06:20:22 +0200 Subject: [PATCH] Remove ?companyId query params from route cheatsheet Company ID is derived from the auth token cookie, not query params. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3dfcde1..142a817 100644 --- a/README.md +++ b/README.md @@ -351,22 +351,22 @@ res.set('Content-Type', thumb.contentType).send(thumb.buffer); | `PATCH /api/company/:id` | `company.update(id, { iso639, name, taxrate, reducedtaxrate })` | | `DELETE /api/company/:id` | `company.delete(id)` | | `PUT /api/auth/selected-company` | `google_auth.setSelectedCompany(googleAuthId, companyId)` | -| `GET /api/category/tree?companyId=` | `category.getTreeForCompany(googleAuthId, companyId)` | +| `GET /api/category/tree` | `category.getTreeForCompany(googleAuthId, companyId)` | | `POST /api/category` | `category.createUnderParent({ googleAuthId, parentId, name })` | | `PATCH /api/category/:id` | `category.rename({ googleAuthId, id, name })` | | `PUT /api/category/order` | `category.order({ googleAuthId, parentId, categoryIds })` | | `POST /api/category/:id/move` | `category.move({ googleAuthId, id, parentId })` | | `DELETE /api/category/:id` | `category.delete({ googleAuthId, id })` | -| `GET /api/unit?companyId=` | `unit.list(googleAuthId, companyId)` | +| `GET /api/unit` | `unit.list(googleAuthId, companyId)` | | `PUT /api/unit` | `unit.upsert(googleAuthId, companyId, { si, basesi, basesifactor, symbol, name })` | | `DELETE /api/unit` | `unit.delete(googleAuthId, companyId, si)` | | `GET /api/company/:id/settings` | `companysetting.list(googleAuthId, companyId, { frontendOnly: true })` | | `PUT /api/company/:id/settings` | `companysetting.set(googleAuthId, companyId, { key, value, frontend? })` | | `DELETE /api/company/:id/settings/:key` | `companysetting.delete(googleAuthId, companyId, key)` | -| `GET /api/brand?companyId=` | `brand.list(googleAuthId, companyId)` | +| `GET /api/brand` | `brand.list(googleAuthId, companyId)` | | `PUT /api/brand` | `brand.upsert(googleAuthId, companyId, { name, gsprpinfo? })` | | `DELETE /api/brand/:id` | `brand.delete(googleAuthId, companyId, id)` | -| `GET /api/posterminal?companyId=` | `posterminal.list(googleAuthId, companyId)` | +| `GET /api/posterminal` | `posterminal.list(googleAuthId, companyId)` | | `PUT /api/posterminal` | `posterminal.upsert(googleAuthId, companyId, { id?, token?, pairingpin })` | | `DELETE /api/posterminal/:id` | `posterminal.delete(googleAuthId, companyId, id)` | | `PUT /api/posterminal/:id/category/:categoryId` | `posterminal.setOn(googleAuthId, companyId, id, categoryId)` |