-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
35 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Release Notes | ||
|
||
## 0.0.34 - 2018-10-05 | ||
## 0.0.35 - 2018-10-05 | ||
|
||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
module internal ReleaseNotes | ||
|
||
let Version = "0.0.34" | ||
let Version = "0.0.35" | ||
|
||
let IsPrerelease = false | ||
|
||
let Notes = """ | ||
# Release Notes | ||
## 0.0.34 - 2018-10-05 | ||
## 0.0.35 - 2018-10-05 | ||
* Initial release | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,14 +18,11 @@ let publicPath = Path.GetFullPath "client" | |
let audioPath = Path.GetFullPath "../../audio" | ||
|
||
|
||
let xs = [for x in System.Environment.GetEnvironmentVariables().Keys -> string x ] | ||
|
||
|
||
let allTagsEndpoint = | ||
let allTagsEndpoint userID = | ||
pipeline { | ||
set_header "Content-Type" "application/json" | ||
plug (fun next ctx -> task { | ||
let! tags = AzureTable.getAllTagsForUser "[email protected]" | ||
let! tags = AzureTable.getAllTagsForUser userID | ||
let txt = TagList.Encoder { Tags = tags } |> Encode.toString 0 | ||
return! setBodyFromString txt next ctx | ||
}) | ||
|
@@ -40,12 +37,12 @@ let mp3Endpoint fileName = | |
}) | ||
} | ||
|
||
let tagEndpoint token = | ||
let tagEndpoint (userID,token) = | ||
pipeline { | ||
set_header "Content-Type" "application/json" | ||
plug (fun next ctx -> task { | ||
|
||
let! tag = AzureTable.getTag "[email protected]" token | ||
let! tag = AzureTable.getTag userID token | ||
let tag = | ||
match tag with | ||
| Some t -> t | ||
|
@@ -90,8 +87,8 @@ let firmwareEndpoint = | |
let webApp = | ||
router { | ||
getf "/api/audio/mp3/%s" mp3Endpoint | ||
getf "/api/tags/%s" tagEndpoint | ||
get "/api/alltags" allTagsEndpoint | ||
getf "/api/tags/%s/%s" tagEndpoint | ||
getf "/api/usertags/%s" allTagsEndpoint | ||
get "/api/startup" startupEndpoint | ||
get "/api/firmware" firmwareEndpoint | ||
} | ||
|