2017-08-19 05:06:05 +02:00
|
|
|
package controllers
|
|
|
|
|
|
|
|
// ValuesController is the equivalent
|
|
|
|
// `ValuesController` of the .net core 2.0 mvc application.
|
2017-12-16 05:38:28 +01:00
|
|
|
type ValuesController struct{}
|
2017-11-21 10:34:04 +01:00
|
|
|
|
|
|
|
// Get handles "GET" requests to "api/values/{id}".
|
|
|
|
func (vc *ValuesController) Get() string {
|
|
|
|
return "value"
|
2017-08-19 05:06:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Put handles "PUT" requests to "api/values/{id}".
|
|
|
|
func (vc *ValuesController) Put() {}
|
|
|
|
|
|
|
|
// Delete handles "DELETE" requests to "api/values/{id}".
|
|
|
|
func (vc *ValuesController) Delete() {}
|