switch arguments use argument from a file

it is possible to put the switch arguments in a file?

switch -glob [HTTP::path] {
        "/foo/*" -
        "/bar/*"
        {
            do something
        }
    }

    switch -glob [HTTP::path] {
        read file
        {
            do something
        }
    }   

    file
    "/foo/*" -
    "/bar/*"

Hi,

For this, use a data group with command:

if {[class match [HTTP::path] starts_with YourDataGroupName]} {
    do something
}