Skip to content

Resolve conflicts and merge: Add custom URL support #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 30, 2024

Conversation

GabrielxDuO
Copy link
Owner

OXeu and others added 4 commits February 23, 2024 23:32
Support szabodanika#83
- add MICROBIN_ENABLE_CUSTOM_URL argument, default: false
- replace pasta.id == id to lambda function `alias_comparator` for better code reuse.
- add custom_alias field in database
- Added `MICROBIN_ENABLE_CUSTOM_URL` environment variable to enable or disable custom URL functionality.
- Updated `Args` struct to include `enable_custom_url` field.
- Modified `auth_upload.rs`, `create.rs`, `edit.rs`, `file.rs`, `list.rs`, `pasta.rs`, `qr.rs`, and `remove.rs` to support custom URLs.
- Updated `Pasta` struct to include `custom_alias` field.
- Updated database schema and related functions to handle custom aliases.
- Added a new section in the guide for custom URLs.
- Updated `index.html` to include a field for custom URLs in the upload form.
- Modified client-side JavaScript to handle custom URL submission.
@GabrielxDuO GabrielxDuO merged commit 732d7c4 into master Jun 30, 2024
@GabrielxDuO GabrielxDuO deleted the handle-pr-conflict branch June 30, 2024 18:14
@GabrielxDuO GabrielxDuO changed the title OXeu: Add custom URL support Resolve conflicts and merge: Add custom URL support Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants