Backend initial Commit
This commit is contained in:
19
backend/main.go
Normal file
19
backend/main.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/arnab-afk/monaco/handler"
|
||||
)
|
||||
|
||||
func main() {
|
||||
h := handler.NewHandler()
|
||||
|
||||
http.HandleFunc("/submit", h.SubmitHandler)
|
||||
http.HandleFunc("/status", h.StatusHandler)
|
||||
http.HandleFunc("/result", h.ResultHandler)
|
||||
|
||||
fmt.Println("Server started at :8080")
|
||||
http.ListenAndServe(":8080", nil)
|
||||
}
|
||||
Reference in New Issue
Block a user