Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
setting up post for new and editing DBs
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed Feb 8, 2020
1 parent 4b26fc2 commit 6fc5d2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/andromeda/araserver/Run.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ object Run : NanoHTTPD(Port().main()) {

//Functions related to the search api
//Start API function

when {
sessionUri.startsWith("/news/us") -> main2 = NewsCache.usNews
sessionUri.startsWith("/posupdate/") ->println(session.parameters)
sessionUri.startsWith("/news/tech") -> main2 = NewsCache.tech
sessionUri.startsWith("/news/money") -> main2 = NewsCache.money
sessionUri.startsWith("/news/mex") -> main2 = NewsCache.mexNews
Expand Down

0 comments on commit 6fc5d2c

Please sign in to comment.