feat: kemal setup

This commit is contained in:
Juan Rodriguez
2024-05-12 18:35:45 +02:00
parent 9e1fcf2d48
commit db42ed2b24
3 changed files with 27 additions and 4 deletions
+18
View File
@@ -0,0 +1,18 @@
version: 2.0
shards:
backtracer:
git: https://github.com/sija/backtracer.cr.git
version: 1.2.2
exception_page:
git: https://github.com/crystal-loot/exception_page.git
version: 0.4.1
kemal:
git: https://github.com/kemalcr/kemal.git
version: 1.5.0
radix:
git: https://github.com/luislavena/radix.git
version: 0.4.1
+4
View File
@@ -8,6 +8,10 @@ targets:
url-shortener:
main: src/url-shortener.cr
dependencies:
kemal:
github: kemalcr/kemal
crystal: '>= 1.12.1'
license: MIT
+5 -4
View File
@@ -1,6 +1,7 @@
# TODO: Write documentation for `Url::Shortener`
module Url::Shortener
VERSION = "0.1.0"
require "kemal"
# TODO: Put your code here
get "/" do
"Hello World!"
end
Kemal.run