/*
 * MEEP Demo App API
 *
 * This is the MEEP Demo App API
 *
 * API version: 0.0.1
 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
 */

package main

import (
        sw "github.com/InterDigitalInc/AdvantEDGE/demoserver/go"
        "net/http"
	"log"
        "github.com/gorilla/handlers"
)

func init() {
        // Initialize App
        sw.Init()
}

func main() {
        log.Printf("DemoSvc App API Server started")

        router := sw.NewRouter()

        methods := handlers.AllowedMethods([]string{"OPTIONS", "DELETE", "GET", "HEAD", "POST", "PUT"})
        header := handlers.AllowedHeaders([]string{"content-type"})

        http.ListenAndServe(":80", handlers.CORS(methods, header)(router))
}

