feat: kemal setup
This commit is contained in:
+18
@@ -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
|
||||
|
||||
@@ -8,6 +8,10 @@ targets:
|
||||
url-shortener:
|
||||
main: src/url-shortener.cr
|
||||
|
||||
dependencies:
|
||||
kemal:
|
||||
github: kemalcr/kemal
|
||||
|
||||
crystal: '>= 1.12.1'
|
||||
|
||||
license: MIT
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user