mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
34664aa311
Former-commit-id: 0ea7e01ce1d78bcb78b40f3b0f5c03ad7c9abaea
17 lines
453 B
Go
17 lines
453 B
Go
package controllers
|
|
|
|
// ValuesController is the equivalent
|
|
// `ValuesController` of the .net core 2.0 mvc application.
|
|
type ValuesController struct{}
|
|
|
|
// Get handles "GET" requests to "api/values/{id}".
|
|
func (vc *ValuesController) Get() string {
|
|
return "value"
|
|
}
|
|
|
|
// Put handles "PUT" requests to "api/values/{id}".
|
|
func (vc *ValuesController) Put() {}
|
|
|
|
// Delete handles "DELETE" requests to "api/values/{id}".
|
|
func (vc *ValuesController) Delete() {}
|