Skip to content
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

Add an optional expiration date column for urls #33

Open
3 tasks
evanugarte opened this issue Jun 14, 2024 · 0 comments
Open
3 tasks

Add an optional expiration date column for urls #33

evanugarte opened this issue Jun 14, 2024 · 0 comments

Comments

@evanugarte
Copy link
Contributor

evanugarte commented Jun 14, 2024

users should be able to specify an expiration for a url. this expiration would exist as a new column in the sqlite database.

if a url was requested and it had a non-null expiration value, and the url is expired, it is deleted from the database and the api returns a 404.

game plan

  • clone cleezy and run it on your computer
  • follow the how to run guide, make sure you can create and delete urls https://github.com/SCE-Development/cleezy?tab=readme-ov-file#how-to-run
  • change /find to in addition to querying the sqlite database, check if the expiration column is not null. if it is not null and the expiration is before the present moment, delete the url, and return a 404 response.
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 a pull request may close this issue.

1 participant