Kemal [Crystal]

This commit is contained in:
Alexander Popov 2023-06-11 18:46:10 +03:00
parent e4531a92d7
commit 13b5d6dbdd
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,7 @@
require "kemal"
get "/" do
"Hello World!"
end
Kemal.run

19
~/Crystal/Kemal/routes.cr Normal file
View 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

View File

@ -0,0 +1,3 @@
dependencies:
kemal:
github: kemalcr/kemal