Implémenter POST /transaction
Ajouter data#ApiClient.InsertTransactions() Fix form action Ajouter séparateur entre description et formulaire Ajouter webhandlers#PostTransaction et PostTransactionResult
This commit is contained in:
parent
2287f00e29
commit
660d8826e2
5 changed files with 100 additions and 2 deletions
|
@ -25,6 +25,7 @@ var apiCmd = &cobra.Command{
|
|||
Short: "Démarrer le serveur API",
|
||||
Args: cobra.ExactArgs(0),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
// TODO migrer à viper.Unmarshal(&models.Config)
|
||||
apiKey = viper.GetString("api.key")
|
||||
apiPort = viper.GetInt("api.port")
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ var webCmd = &cobra.Command{
|
|||
// Routes
|
||||
|
||||
e.GET("/", webhandlers.GetIndex)
|
||||
//e.POST("/transaction", webhandlers.PostTransaction)
|
||||
e.POST("/transaction/", webhandlers.PostTransaction)
|
||||
|
||||
// Execution
|
||||
|
||||
|
|
Reference in a new issue