new: feat: add lambdas

This commit is contained in:
2022-04-21 15:14:49 -03:00
commit 32dc9ed3e7
7 changed files with 165 additions and 0 deletions

16
api/index.go Normal file
View File

@@ -0,0 +1,16 @@
package handler
import (
"fmt"
"net/http"
"time"
)
func HandlerIndex(w http.ResponseWriter, r *http.Request) {
currentTime := time.Now().Format(time.RFC850)
fmt.Fprintf(w, currentTime)
w.Header().Set("Content-Type", "text/html")
fmt.Fprintf(w, `
Github OAuth2 => <a href="https://github.com/xjh22222228/github-oauth2" target="_blank">https://github.com/xjh22222228/github-oauth2</a>
`)
}