package routes import ( "strings" "github.com/nchursin/formtgbot/redis" "github.com/nchursin/formtgbot/structs" ) func Confirm(data string) *structs.Vacancy { key := strings.TrimPrefix(data, "confirm:") return redis.Pop(key) }