Closed senekor closed 1 year ago
A bookmark stores a URL. Every url should have a schema at the beginning, for example:
http://
https://
file://
If users submit a bookmark with a url that lacks a schema, we should add a default schema of https, before storing the bookmark in the database.
https
This is the first example of business logic that we will have in our program. Business logic should go in the module models.
models
A bookmark stores a URL. Every url should have a schema at the beginning, for example:
http://
https://
file://
If users submit a bookmark with a url that lacks a schema, we should add a default schema of
https
, before storing the bookmark in the database.This is the first example of business logic that we will have in our program. Business logic should go in the module
models
.