Created
March 7, 2020 22:54
-
-
Save bettio/e9141b4322908dba299b4f55c5ad81c6 to your computer and use it in GitHub Desktop.
Elixir morse encoder example - step 7
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
<html> | |
+ <head> | |
+ <link rel="stylesheet" href="/milligram.min.css"> | |
+ </head> | |
<body> | |
+ def handle_req('GET', ['milligram.min.css'], conn) do | |
+ :http_server.reply(200, :atomvm.read_priv(:morse_encoder, 'milligram.min.css'), conn) | |
+ end | |
+ | |
def handle_req(method, path, conn) do | |
:erlang.display({method, path}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment