From 13b5d6dbdd129336b8094d54b61bc41936361773 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 11 Jun 2023 18:46:10 +0300 Subject: [PATCH] Kemal [Crystal] --- ~/Crystal/Kemal/example.cr | 7 +++++++ ~/Crystal/Kemal/routes.cr | 19 +++++++++++++++++++ ~/Crystal/Kemal/shards.yml | 3 +++ 3 files changed, 29 insertions(+) create mode 100644 ~/Crystal/Kemal/example.cr create mode 100644 ~/Crystal/Kemal/routes.cr create mode 100644 ~/Crystal/Kemal/shards.yml diff --git a/~/Crystal/Kemal/example.cr b/~/Crystal/Kemal/example.cr new file mode 100644 index 0000000..5559ebe --- /dev/null +++ b/~/Crystal/Kemal/example.cr @@ -0,0 +1,7 @@ +require "kemal" + +get "/" do + "Hello World!" +end + +Kemal.run diff --git a/~/Crystal/Kemal/routes.cr b/~/Crystal/Kemal/routes.cr new file mode 100644 index 0000000..b12efd0 --- /dev/null +++ b/~/Crystal/Kemal/routes.cr @@ -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 diff --git a/~/Crystal/Kemal/shards.yml b/~/Crystal/Kemal/shards.yml new file mode 100644 index 0000000..3edd032 --- /dev/null +++ b/~/Crystal/Kemal/shards.yml @@ -0,0 +1,3 @@ +dependencies: + kemal: + github: kemalcr/kemal