Skip to content

Conversation

@CKegel
Copy link
Contributor

@CKegel CKegel commented Mar 15, 2023

Fix spelling error, simplify logic and add token authentication to admin endpoints

@CKegel CKegel requested review from ddbruce and lramos15 as code owners March 15, 2023 16:08
@ddbruce
Copy link
Member

ddbruce commented Mar 15, 2023

Also there's an approximately 125% chance I comment on more stuff when those changes are made. Phone code reviews aren't very...thorough.

@ddbruce ddbruce merged commit 3873178 into dev Mar 15, 2023
@ddbruce ddbruce deleted the ckegel_patch branch March 15, 2023 16:38
@lramos15
Copy link
Contributor

Probably would've been better to use some middleware here

@CKegel
Copy link
Contributor Author

CKegel commented Mar 15, 2023

@lramos15 where specifically, and what type of middle-ware were you thinking?

@lramos15
Copy link
Contributor

@lramos15 where specifically, and what type of middle-ware were you thinking?

https://expressjs.com/en/guide/using-middleware.html#middleware.router

Could use this to avoid a token check on each endpoint. Would allow you add endpoints that require auth arbitrarily

ddbruce added a commit that referenced this pull request Mar 21, 2023
* Master -> dev (#44)

Co-authored-by: Logan Ramos <lramos15@gmail.com>

* Add CAD Display from Herald (#65)

* Restructured Index.html and added endpoint for herald to push dispatch info to

* Styled Dispatch alerts, set dispatch alert duration to three minutes, and fixed odds and ends

* add dev env

* add dev workflow

* match database fields

* add css file to index.html

* this is what happens when you copy and paste a line

* eslint

* work on dispatch styling

* more styling

* add dispatch time

* fix dispatch time text

* Style Changes for Headsup Dispatch (#66)

* Changed Styling to capitalize dispatch info by request of RPIA dev-team coordinator

* Capitalize the start of words and Uppercase the determinant in Dispatch Alerts

* Moved Dispatch style to style-dispatch.scss

* BugFix: Fix issues with dispatches that occur within 3 minutes of each other (#68)

* Changed Styling to capitalize dispatch info by request of RPIA dev-team coordinator

* Capitalize the start of words and Uppercase the determinant in Dispatch Alerts

* Moved Dispatch style to style-dispatch.scss

* Fixed issues with dispatches that occur within 3 minutes of each other

* Correct Logic Errors in ClearDispatch Timeout

* Added authentication token for herald dispatch

* 1.5.0

* Clean Code and Add Admin Authentication (#70)

* Spell checking and code adjustments

* Added token authentication to admin POST endpoints

* restructure admin authentication

* fix double-dispatch clearing time issue

* update build status badge

---------

Co-authored-by: Logan Ramos <lramos15@gmail.com>
Co-authored-by: Christian <57967583+CKegel@users.noreply.github.com>
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.

4 participants