-
-
Save dharamgollapudi/4554469 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "sinatra" | |
| get("/") { "Hello World!" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use Dancer; | |
| use Template; | |
| get '/' => sub { template 'home' }; | |
| dance; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from itty import get, run_itty | |
| @get('/') | |
| def index(request): | |
| return 'Hello World!' | |
| run_itty() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require('express') | |
| get('/user', function(){ | |
| "Hello World!" | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns hello-world | |
| (:use compojure.core | |
| ring.adapter.jetty)) | |
| (defroutes main-routes | |
| (GET "/" [] | |
| "Hello World") | |
| (ANY "*" [] | |
| {:status 404, :body "<h1>Page not found</h1>"})) | |
| (run-jetty main-routes {:port 8080}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'mercury' | |
| module('hello', package.seeall, mercury.application) | |
| get('/', function() | |
| return "Hello world!" | |
| end) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "web" | |
| ) | |
| func hello(val string) string { return "Hello world!" } | |
| func main() { | |
| web.Get("/", hello) | |
| web.Run("0.0.0.0:9999") | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.thinkminimo.step | |
| class StepExample extends Step { | |
| get("/") { "Hello World!" } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment