-
Notifications
You must be signed in to change notification settings - Fork 0
/
todos
38 lines (30 loc) · 845 Bytes
/
todos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
- Ensure uniqueness of mini
- Ensure link when saving
- POST:
- Check
- ToCheck: True
- shortLink: "string"
- Create
- ToCreate: True
- shortLink:
- longLink:
homepage
Get:
// If payload
// if okay
// if not okay
resend homepage code OR send a joke object
// If no payload just return homepage
Post
// validate url presence
// Create
// send confirmatory json and display that on page
/shortLink
// Check db and redirect accordingly
// If not found 404.
notes:
'# NOTE/FOR LATER: Maybe do a redirect here? in' views.py
EXTRA
click to copy (https://www.w3schools.com/howto/howto_js_copy_clipboard.asp) + bootstrap alert
read only /disbaled
bootstrap's input groups (https://getbootstrap.com/docs/4.5/components/input-group/)