Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sumittokkar authored and sumittokkar committed Dec 17, 2020
1 parent 34c8e70 commit 0eb7d66
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import (
"net/http"
)

/*
Serve method takes a port and route config file(s) as arguments.
It is responsible for parsing the route config files(s), generate routes, set authentication and
start the server at the specified port.
*/
func Serve(port string, paths ...string) {
routeConfig, err := getRouteConfig(paths)
if err != nil {
Expand Down

0 comments on commit 0eb7d66

Please sign in to comment.