move views into api directory