Make endpoint return without .txt