mirror of
https://github.com/dillonkearns/elm-pages.git
synced 2024-10-26 10:27:36 +03:00
Move secret file to content/ folder.
This commit is contained in:
parent
9e9eb26a02
commit
972c0ea9ce
3
examples/pokedex/content/secret-note.txt
Normal file
3
examples/pokedex/content/secret-note.txt
Normal file
@ -0,0 +1,3 @@
|
||||
This is a top secret note. You can only access this if the elm-pages server lets you in. It's not a very good secret because this repo is open source, but if it were a private repo then you wouldn't be able to access this data without logging in first!
|
||||
|
||||
The secret is that there isn't actually a secret.
|
@ -10,4 +10,4 @@
|
||||
framework = "#custom"
|
||||
|
||||
[functions]
|
||||
included_files = ["secret-note.txt"]
|
||||
included_files = ["content/**/*"]
|
||||
|
@ -58,7 +58,7 @@ data routeParams =
|
||||
username
|
||||
|> LoggedInInfo
|
||||
|> DataSource.succeed
|
||||
|> DataSource.andMap (DataSource.File.rawFile "./secret-note.txt")
|
||||
|> DataSource.andMap (DataSource.File.rawFile "content/secret-note.txt")
|
||||
|> DataSource.map LoggedIn
|
||||
|> DataSource.map PageServerResponse.RenderPage
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user