mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Removed redundant code from hello_world
This commit is contained in:
		
							parent
							
								
									fa00265345
								
							
						
					
					
						commit
						753c910989
					
				
					 1 changed files with 0 additions and 7 deletions
				
			
		|  | @ -4,10 +4,3 @@ require "kemal" | ||||||
| get "/" do | get "/" do | ||||||
|   "Hello Kemal!" |   "Hello Kemal!" | ||||||
| end | end | ||||||
| 
 |  | ||||||
| # You can easily access the environment and set content_type like 'application/json'. |  | ||||||
| # Look how easy to build a JSON serving API. |  | ||||||
| get "/user.json" do |env| |  | ||||||
|   env.response.content_type = "application/json" |  | ||||||
|   {name: "Serdar", age: 27}.to_json |  | ||||||
| end |  | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue