- type checking for body using zod
- helper functions for returning json/html/error/ok responses
- request method validation
If the data to api route is contained within formdata just pass {formData: true} in options
| #!/usr/bin/env bash | |
| # GNOME to KDE Migration Script | |
| # Description: Safely migrates from GNOME to KDE Plasma desktop environment on Fedora | |
| # Warning: This will remove GNOME and install KDE. Backup important data first. | |
| # Originally by @theking2 on fedora discussion board (https://discussion.fedoraproject.org/t/is-it-possible-to-switch-completely-to-kde-from-gnome/66747/13) | |
| # Modified for newer versions of fedora (@group instead of "Group" in dnf) | |
| # Added check that user is in terminal session | |
| # (script made my screen go blank since it killed gdm i think) |