You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Morsel
using Redis
redis = redis()
app = Morsel.app()
route(app, GET | POST | PUT, "/") do req, res
"This is the root"
end
get(app, "/about") do req, res
"This app is running on Morsel"
end
start(app, 8000)
execution produces the following error:
○ → julia app.jl
WARNING: Dict-based `@docstring` config is deprecated. Use keywords instead.
Warning: imported binding for redis overwritten in module Main
ERROR: `get` has no method matching get(::Function, ::App, ::ASCIIString)
you may have intended to import Base.get
in include at /usr/local/Cellar/julia/0.3.3/lib/julia/sys.dylib
in include_from_node1 at loading.jl:128
in process_options at /usr/local/Cellar/julia/0.3.3/lib/julia/sys.dylib
in _start at /usr/local/Cellar/julia/0.3.3/lib/julia/sys.dylib (repeats 2 times)
The text was updated successfully, but these errors were encountered:
Given a
Morsel.jl
app as follows:execution produces the following error:
The text was updated successfully, but these errors were encountered: