Kemal [Crystal]
This commit is contained in:
parent
e4531a92d7
commit
13b5d6dbdd
7
~/Crystal/Kemal/example.cr
Normal file
7
~/Crystal/Kemal/example.cr
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
require "kemal"
|
||||||
|
|
||||||
|
get "/" do
|
||||||
|
"Hello World!"
|
||||||
|
end
|
||||||
|
|
||||||
|
Kemal.run
|
19
~/Crystal/Kemal/routes.cr
Normal file
19
~/Crystal/Kemal/routes.cr
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
get "/" do
|
||||||
|
..show something..
|
||||||
|
end
|
||||||
|
|
||||||
|
post "/" do
|
||||||
|
..create something..
|
||||||
|
end
|
||||||
|
|
||||||
|
put "/" do
|
||||||
|
..replace something..
|
||||||
|
end
|
||||||
|
|
||||||
|
patch "/" do
|
||||||
|
..modify something..
|
||||||
|
end
|
||||||
|
|
||||||
|
delete "/" do
|
||||||
|
..a
|
||||||
|
end
|
3
~/Crystal/Kemal/shards.yml
Normal file
3
~/Crystal/Kemal/shards.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
kemal:
|
||||||
|
github: kemalcr/kemal
|
Loading…
Reference in New Issue
Block a user