bohnerjosh / softeng21

Apache License 2.0
0 stars 0 forks source link

Add 'diaries' route to server that shows diaries in a web browser #2

Closed bohnerjosh closed 2 years ago

bohnerjosh commented 2 years ago

This route should take in a string (the diary key) passed in from the link the user clicks on when they go from the diary page to the entries page of a particular diary. This key allows us to uniquely identify a diary to get its entries, and on the server, the key is the stored name of the diary. Once the entries are gathered, print them to the screen similar to how the ls sub-command works with Jinja templates. This will also use render template and a html page instead of \

 tags.

Example output:

School

[01-13-2022 18:53 (#1) by bohnjos]

It is going to snow tomorrow

[01-13-2022 19:57 (#2) by bohnjos]

Wow it is a blizzard out. Guess I should wear my winter boots and thick jacket

bohnerjosh commented 2 years ago

Finished and directly committed to main