Use navitia line_reports instead of non-working general-message
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2023-07-14 12:23:51 +02:00
commit 030ec3004e
2 changed files with 83 additions and 96 deletions

View file

@ -1,12 +1,21 @@
package api
import (
"flag"
"fmt"
"time"
"github.com/gin-gonic/gin"
)
const IDFM2_BASEURL = "https://prim.iledefrance-mobilites.fr/marketplace"
var IDFM_TOKEN = ""
func init() {
flag.StringVar(&IDFM_TOKEN, "token-idfm", IDFM_TOKEN, "Token to access IDFM API")
}
type apiMetadata struct {
Call string `json:"call"`
Date time.Time `json:"date"`