Refactor backend #11

Open
opened 2025-08-25 02:42:03 +02:00 by VityaSchel · 1 comment
VityaSchel commented 2025-08-25 02:42:03 +02:00 (Migrated from github.com)

API is currently not RESTful:

  • Page endpoints should be in plural form
  • There are three separate endpoints for one entity — page: DELETE /page, GET /page/:pageId endpoint and POST /upload

Other stuff

  • authorToken isn't concise name, and there is a ton of other stupid named variables
  • fs module calls should be replaced with Bun.file
API is currently not RESTful: - Page endpoints should be in plural form - There are three separate endpoints for one entity — page: DELETE `/page`, GET `/page/:pageId` endpoint and POST `/upload` Other stuff - `authorToken` isn't concise name, and there is a ton of other stupid named variables - `fs` module calls should be replaced with Bun.file
VityaSchel commented 2025-08-27 00:09:56 +02:00 (Migrated from github.com)

Also GET /page/:pageId/info conflicts with GET /page/:pageId/:file when file is called info

Also GET /page/:pageId/info conflicts with GET /page/:pageId/:file when file is called `info`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hloth/lufin#11
No description provided.