mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Fix JSON API sample.
This commit is contained in:
		
							parent
							
								
									d8ab11f73f
								
							
						
					
					
						commit
						c5e2c7e618
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -4,6 +4,6 @@ require "json" | ||||||
| # You can easily access the context and set content_type like 'application/json'. | # You can easily access the context and set content_type like 'application/json'. | ||||||
| # Look how easy to build a JSON serving API. | # Look how easy to build a JSON serving API. | ||||||
| get "/" do |env| | get "/" do |env| | ||||||
|   env.set_content_type = "application/json" |   env.content_type = "application/json" | ||||||
|   {name: "Serdar", age: 27}.to_json |   {name: "Serdar", age: 27}.to_json | ||||||
| end | end | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue